/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --success: #10b981;
}

[data-theme="dark"] {
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-alt: #1e293b;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .feature-animation {
    background: #1e293b;
}

[data-theme="dark"] .widget-demo-mini {
    background: #1e293b;
}

[data-theme="dark"] .document-page {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .code-snippet {
    background: #0f172a;
}

[data-theme="dark"] .code-line {
    background: #334155;
}

[data-theme="dark"] .donation-widget-large {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .donation-custom-large {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .donation-type-toggle-large {
    background: #0f172a;
}

[data-theme="dark"] .donation-type-btn-large.active {
    background: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    min-height: 100vh;
}


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

/* Header & Navigation */
.header {
    background: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.nav {
    position: relative;
    width: 100%;
}

.header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 2.5;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.features-dropdown {
    position: relative;
}

.nav-menu-item {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.3s ease;
    border-radius: 0.5rem;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.nav-menu-item:hover {
    color: var(--primary);
}

.nav-menu-item.active,
a.nav-menu-item.active {
    color: var(--primary);
    font-weight: 600;
}

a.nav-menu-item {
    text-decoration: none;
    color: var(--text);
}

.features-chevron-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.features-dropdown.active .features-chevron-icon {
    transform: rotate(180deg);
}

.features-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-lg);
    min-width: 220px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.features-dropdown.active .features-dropdown-menu {
    display: flex;
}

.features-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.features-menu-item:hover {
    background: var(--background-alt);
    color: var(--primary);
}

.features-menu-item.active {
    background: var(--primary);
    color: white;
}

.features-menu-item.active:hover {
    background: var(--primary-dark);
}

.features-menu-item i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--background-alt);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background: var(--background-alt);
    border-color: var(--primary);
}

.lang-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.lang-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow-lg);
    min-width: 80px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.lang-dropdown.active .lang-dropdown-menu {
    display: flex;
}

.lang-option {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: var(--background-alt);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#login-btn,
#register-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0.625rem 1.5rem !important;
    border: 2px solid !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s ease;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
    background: var(--background-alt);
    border-color: var(--primary);
    outline: none;
}

.mobile-menu-toggle .menu-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    pointer-events: none;
}

.desktop-only {
    display: flex;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--background);
        box-shadow: 0 4px 24px var(--shadow-lg);
        border-top: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        will-change: max-height;
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-menu.active {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        visibility: visible;
    }
}



.mobile-menu-items {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-item:hover {
    background: var(--background-alt);
}

.mobile-menu-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-menu-item-button {
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-item-button:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-item-button:hover svg {
    stroke: white;
}

.mobile-menu-item-primary {
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
}

.mobile-menu-item-primary:hover {
    background: var(--primary-dark);
}

.mobile-menu-item-primary svg {
    stroke: white;
}

.mobile-menu-item-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-item-link:hover {
    background: var(--background-alt);
}

.mobile-menu-item-link.active {
    background: var(--primary);
    color: white;
}

.mobile-menu-item-link.active svg {
    stroke: white;
}

.mobile-menu-item-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.mobile-menu-item-group {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--background-alt);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-lang-option:hover {
    border-color: var(--primary);
    background: var(--background);
}

.mobile-lang-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.mobile-lang-option .lang-check {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-lang-option.active .lang-check {
    opacity: 1;
}

.mobile-menu-item-toggle {
    justify-content: space-between;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-slider {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.theme-icon-mobile {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.2;
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    white-space: nowrap;
    vertical-align: middle;
    margin: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

#register-btn {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

#register-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px var(--shadow-lg) !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

#login-btn {
    background: transparent !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

#login-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px var(--shadow-lg) !important;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    display: block;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--background-alt);
    transition: background-color 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-header.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

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

.feature-card {
    background: var(--background);
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, background-color 0.3s ease;
    border: 1px solid var(--border);
    opacity: 1;
    transform: translateY(0);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

a > .feature-card {
    cursor: pointer;
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px var(--shadow-lg);
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 2s ease-in-out infinite;
}

.feature-animation {
    width: 100%;
    height: 200px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Donations Animation */
.donations-animation {
    perspective: 1000px;
}

.widget-demo-mini {
    width: 100%;
    max-width: 220px;
    height: 160px;
    background: var(--background);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px var(--shadow);
    overflow: hidden;
    position: relative;
    animation: widgetAppear 0.6s ease-out;
}

@keyframes widgetAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.widget-header-mini {
    height: 40px;
    background: var(--primary);
    animation: headerSlide 0.5s ease-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.widget-header-text {
    animation: fadeIn 0.5s ease-out 0.5s both;
}

@keyframes headerSlide {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.widget-body-mini {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: bodyFadeIn 0.5s ease-out 0.6s both;
}

@keyframes bodyFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.amount-option-mini {
    height: 28px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    animation: amountPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.amount-option-mini.active {
    background: var(--primary);
    border-color: var(--primary);
    animation: amountSelect 0.5s ease-out 1.2s both;
}

@keyframes amountPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes amountSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.payment-success-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--success);
    animation: paymentSuccess 0.6s ease-out 1.8s both;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0;
    overflow: hidden;
}

@keyframes paymentSuccess {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        height: 40px;
        opacity: 1;
    }
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* CRM Animation */
.crm-animation {
    padding: 1rem;
}

.crm-list {
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crm-item {
    height: 50px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    animation: crmItemAppear 0.5s ease-out both;
    width: 100%;
}

.crm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 0.75rem;
    animation: avatarPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.crm-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.crm-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.crm-email {
    font-size: 0.75rem;
    color: var(--text-light);
}

.crm-item:nth-child(1) {
    animation-delay: 0.2s;
}

.crm-item:nth-child(2) {
    animation-delay: 0.4s;
}

.crm-item.new {
    animation: crmItemNew 0.8s ease-out 0.6s both;
    border-color: var(--primary);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
}

@keyframes crmItemAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes crmItemNew {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


@keyframes avatarPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Certificates Animation */
.certificates-animation {
    padding: 1rem;
}

.certificate-flow {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.pdf-document {
    width: 120px;
    height: 140px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    animation: pdfAppear 0.8s ease-out;
}

@keyframes pdfAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pdf-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: pdfIconPulse 2s ease-in-out infinite 0.8s;
}

@keyframes pdfIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pdf-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.5rem;
    word-break: break-word;
    line-height: 1.2;
}

.pdf-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    animation: badgeAppear 0.5s ease-out 0.5s both;
    opacity: 0;
}

@keyframes badgeAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.email-interface {
    width: 160px;
    height: 140px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    flex-direction: column;
    animation: emailAppear 0.6s ease-out 1s both;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

@keyframes emailAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.email-header {
    background: var(--background-alt);
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    animation: emailHeaderFade 0.4s ease-out 1.2s both;
    opacity: 0;
}

@keyframes emailHeaderFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.email-to {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
}

.email-body {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: emailBodyFade 0.4s ease-out 1.4s both;
    opacity: 0;
}

@keyframes emailBodyFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.email-subject {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
}

.email-attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--background-alt);
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    animation: attachmentPulse 2s ease-in-out infinite 1.8s;
}

@keyframes attachmentPulse {
    0%, 100% {
        border-color: var(--border);
    }
    50% {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
}

.attachment-icon {
    font-size: 0.875rem;
    color: var(--primary);
}

.attachment-name {
    font-size: 0.65rem;
    color: var(--text);
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-send-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    border-top: 1px solid var(--border);
    animation: sendBtnAppear 0.4s ease-out 1.6s both;
    opacity: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.email-send-btn:hover {
    background: var(--primary-dark);
}

@keyframes sendBtnAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkmark-success {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: checkmarkAppear 0.6s ease-out 2.2s both;
    opacity: 0;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Widget Animation */
.widget-animation {
    padding: 0;
    width: 100%;
    height: 100%;
}

.widget-demo-flow {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.code-snippet-small {
    width: 100%;
    max-width: 200px;
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: codeSnippetAppear 0.6s ease-out;
}

@keyframes codeSnippetAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #e2e8f0;
    flex: 1;
}

.copy-button {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    animation: copyButtonPulse 2s ease-in-out infinite 0.8s;
    white-space: nowrap;
}

@keyframes copyButtonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.arrow-down {
    font-size: 1.5rem;
    color: var(--primary);
    animation: arrowBounce 1s ease-in-out infinite 1s;
    opacity: 0;
}

@keyframes arrowBounce {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

.arrow-down {
    animation: arrowAppear 0.5s ease-out 1.2s both, arrowBounce 1s ease-in-out infinite 1.7s;
}

@keyframes arrowAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.website-preview {
    width: 100%;
    max-width: 220px;
    height: 100px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    animation: websiteAppear 0.6s ease-out 1.8s both;
    opacity: 0;
}

@keyframes websiteAppear {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.website-header {
    height: 24px;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.website-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
}

.website-dot:nth-child(1) {
    background: #ef4444;
}

.website-dot:nth-child(2) {
    background: #f59e0b;
}

.website-dot:nth-child(3) {
    background: #10b981;
}

.website-content {
    padding: 1rem;
    height: calc(100% - 24px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.website-widget-appear {
    animation: widgetAppearOnSite 0.8s ease-out 2.4s both;
    opacity: 0;
}

@keyframes widgetAppearOnSite {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.widget-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    animation: widgetButtonPulse 2s ease-in-out infinite 3.2s;
}

@keyframes widgetButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        transform: scale(1.02);
    }
}

/* Dashboard Animation */
.dashboard-animation {
    padding: 0;
    width: 100%;
    height: 100%;
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: dashboardAppear 0.6s ease-out;
}

@keyframes dashboardAppear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    animation: headerFadeIn 0.5s ease-out 0.2s both;
    opacity: 0;
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.dashboard-period {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.dashboard-stats {
    display: flex;
    gap: 0.75rem;
    animation: statsFadeIn 0.5s ease-out 0.4s both;
    opacity: 0;
}

@keyframes statsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    flex: 1;
    background: var(--background-alt);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-height: 60px;
    animation: chartFadeIn 0.5s ease-out 0.6s both;
    opacity: 0;
}

@keyframes chartFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.chart-bars {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: var(--primary);
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 8px;
    animation: chartBarGrow 0.8s ease-out both;
    position: relative;
}

.chart-bar-item:nth-child(1) .chart-bar {
    animation-delay: 0.8s;
}

.chart-bar-item:nth-child(2) .chart-bar {
    animation-delay: 0.9s;
}

.chart-bar-item:nth-child(3) .chart-bar {
    animation-delay: 1s;
}

.chart-bar-item:nth-child(4) .chart-bar {
    animation-delay: 1.1s;
}

.chart-bar-item:nth-child(5) .chart-bar {
    animation-delay: 1.2s;
}

@keyframes chartBarGrow {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.chart-label {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.25rem;
    animation: labelFadeIn 0.3s ease-out both;
}

.chart-bar-item:nth-child(1) .chart-label {
    animation-delay: 1s;
}

.chart-bar-item:nth-child(2) .chart-label {
    animation-delay: 1.1s;
}

.chart-bar-item:nth-child(3) .chart-label {
    animation-delay: 1.2s;
}

.chart-bar-item:nth-child(4) .chart-label {
    animation-delay: 1.3s;
}

.chart-bar-item:nth-child(5) .chart-label {
    animation-delay: 1.4s;
}

@keyframes labelFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Security Animation */
.security-animation {
    padding: 0;
    width: 100%;
    height: 100%;
}

.security-badges {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.security-badge {
    width: 100%;
    max-width: 180px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px var(--shadow);
    animation: badgeAppear 0.6s ease-out both;
    opacity: 0;
}

.security-badge:nth-child(1) {
    animation-delay: 0.2s;
}

.security-badge:nth-child(2) {
    animation-delay: 0.4s;
}


@keyframes badgeAppear {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
    color: var(--primary);
}

.gdpr-badge .badge-icon {
    color: var(--primary);
}

.ssl-badge .badge-icon {
    color: var(--success);
}

.security-badge:nth-child(1) .badge-icon {
    animation-delay: 0.8s;
}

.security-badge:nth-child(2) .badge-icon {
    animation-delay: 0.9s;
}


@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.badge-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.badge-label-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.badge-status {
    font-size: 0.65rem;
    color: var(--success);
    font-weight: 600;
}

.gdpr-badge {
    border-left: 4px solid var(--primary);
}

.gdpr-badge .badge-status {
    color: var(--primary);
}

.ssl-badge {
    border-left: 4px solid var(--success);
}


.feature-icon {
    display: none;
}

.feature-card-content {
    padding: 2rem 2.5rem 2.5rem;
    flex: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    margin-top: 0;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Widget Demo Section */
.widget-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.widget-demo-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.widget-demo-content.animated {
    opacity: 1;
    transform: translateX(0);
}

.widget-preview {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.widget-preview.animated {
    opacity: 1;
    transform: translateX(0);
}

.widget-demo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.widget-demo-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.widget-features {
    list-style: none;
    margin-bottom: 2rem;
}

.widget-features li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    stroke: var(--success);
    stroke-width: 3;
    flex-shrink: 0;
    /* Geen animatie op checkmarks */
}

.widget-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-preview-container {
    background: #f5f5f5;
    border-radius: 1rem;
    box-shadow: 0 8px 24px var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    height: 500px;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.widget-preview-box {
    background: var(--background);
    border-radius: 1rem;
    box-shadow: 0 8px 24px var(--shadow-lg);
    padding: 2rem;
    min-width: 300px;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.widget-preview-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.widget-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.widget-amount-btn {
    padding: 0.75rem;
    background: var(--background-alt);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.widget-amount-btn:hover {
    border-color: var(--primary);
    background: var(--background);
}

.widget-donate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-donate-btn:hover {
    background: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-content.animated {
    opacity: 1;
    transform: translateY(0);
}

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

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active .modal-content {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.modal-content {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    border: 1px solid var(--border);
    transform: scale(0.9);
    opacity: 0;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.modal-content > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Form */
.register-form {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background: var(--background);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input:invalid {
    border-color: #ef4444;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none !important;
    }

    .nav-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0;
        margin-left: auto;
    }

    .widget-demo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .widget-preview-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        height: auto;
        min-height: 400px;
        max-height: 500px;
    }
    
    .widget-demo-content h2 {
        font-size: 2rem;
    }
    
    .widget-demo-content p {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-animation {
        height: 160px;
    }

    .widget-demo-mini {
        width: 150px;
        height: 130px;
    }

    .shield-icon-animated {
        width: 100px;
        height: 100px;
    }

    .shield-outline {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

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

    .section {
        padding: 3rem 0;
    }
    
    .widget-preview-container {
        padding: 0.75rem;
        min-height: 350px;
        max-height: 450px;
    }
    
    .widget-demo-content h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .nav-content {
        flex-direction: row;
        gap: 0;
    }
}

/* Feature Page Styles */
.feature-hero-section {
    padding: 4rem 0;
    background: var(--background);
}

.feature-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 500px;
}

@media (min-width: 769px) {
    .feature-hero-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

.feature-hero-text {
    animation: fadeInLeft 0.8s ease-out;
    width: 100%;
}

.feature-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
}

.feature-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--text);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    stroke: var(--success);
    stroke-width: 2.5;
    flex-shrink: 0;
}

.feature-hero-animation {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInRight 0.8s ease-out;
    position: sticky;
    top: 120px;
    height: fit-content;
    width: 100%;
    max-width: 100%;
}

.feature-donation-animation-large {
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.donation-widget-large {
    background: var(--background);
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: widgetAppearLarge 0.8s ease-out;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
}

@keyframes widgetAppearLarge {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.donation-widget-header-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.widget-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.widget-header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.donation-widget-body-large {
    padding: 2rem;
}

.donation-amounts-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donation-amount-btn-large {
    padding: 1rem;
    background: var(--background-alt);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-amount-btn-large:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.donation-amount-btn-large.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.donation-custom-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background-alt);
}

.euro-sign {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.custom-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.custom-amount-input::placeholder {
    color: var(--text-light);
}

.donation-type-toggle-large {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--background-alt);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.donation-type-btn-large {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.donation-type-btn-large.active {
    background: var(--background);
    color: var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.donation-submit-btn-large {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.donation-submit-btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.donation-success-large {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 200px;
}

.success-icon-large {
    width: 64px;
    height: 64px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.success-text-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.success-details-large {
    font-size: 1rem;
    color: var(--text-light);
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
}

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

.benefit-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-lg);
}

.benefit-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-card-icon {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

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

.faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

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

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

/* Responsive for Feature Page */
@media (max-width: 968px) {
    .feature-hero-content {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        min-height: auto;
    }
    
    .feature-hero-animation {
        order: -1 !important;
        margin-bottom: 2rem;
        position: relative !important;
        top: 0 !important;
    }
    
    .feature-hero-title {
        font-size: 2.5rem;
    }
    
    .feature-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .feature-donation-animation-large {
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .feature-hero-section {
        padding: 3rem 0;
    }
    
    .feature-hero-title {
        font-size: 2rem;
    }
    
    .feature-hero-subtitle {
        font-size: 1rem;
    }
    
    .donation-amounts-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-widget-large {
        max-width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-hero-animation {
        order: -1;
    }
}

/* CRM Animation Large */
.feature-crm-animation-large {
    width: 100%;
    max-width: 600px;
    min-width: 350px;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.crm-dashboard-large {
    background: var(--background);
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: widgetAppearLarge 0.8s ease-out;
    width: 100%;
    display: block;
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.crm-dashboard-header-large {
    background: var(--background-alt);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.crm-dashboard-title-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.crm-export-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.crm-export-btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.crm-export-btn-large i {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.crm-search-bar-large {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-alt);
}

.crm-search-bar-large i {
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
    stroke-width: 2;
    flex-shrink: 0;
}

.crm-search-input-large {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.crm-search-input-large::placeholder {
    color: var(--text-light);
}

.crm-table-large {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-table-header-large {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--background-alt);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.crm-table-col-large {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crm-table-body-large {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.crm-table-row-large {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 0;
}

.crm-table-row-large:hover {
    background: var(--background-alt);
}

.crm-table-row-large.new-donor-large {
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--primary);
}

.crm-table-cell-large {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
}

.crm-avatar-large {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.crm-cell-info-large {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.crm-name-large {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-email-small-large {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-email-cell-large {
    display: none;
}

.crm-actions-cell-large {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.crm-action-btn-large {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.crm-action-btn-large:hover {
    background: var(--background-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.crm-action-btn-large i {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

@media (min-width: 769px) {
    .crm-email-cell-large {
        display: flex;
    }
    
    .crm-cell-info-large .crm-email-small-large {
        display: none;
    }
    
    .crm-table-header-large,
    .crm-table-row-large {
        grid-template-columns: 2fr 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .crm-dashboard-large {
        max-width: 100%;
    }
    
    .feature-crm-animation-large {
        max-width: 100%;
        min-width: auto;
    }
    
    .crm-table-header-large,
    .crm-table-row-large {
        grid-template-columns: 1fr auto;
    }
    
    .crm-email-cell-large {
        display: none;
    }
    
    .crm-cell-info-large .crm-email-small-large {
        display: block;
    }
}

[data-theme="dark"] .crm-dashboard-large {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .crm-table-row-large.new-donor-large {
    background: rgba(37, 99, 235, 0.1);
}

/* Certificate Animation Large */
.feature-certificate-animation-large {
    width: 100%;
    max-width: 600px;
    min-width: 350px;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.certificate-container-large {
    background: var(--background);
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    height: 500px;
    position: relative;
    animation: widgetAppearLarge 0.8s ease-out;
}

.certificate-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.certificate-step.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
}

.certificate-step-pdf {
    z-index: 1;
}

.certificate-step-email {
    z-index: 1;
}

.certificate-step-success {
    z-index: 1;
}

.certificate-pdf-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-email-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-success-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.certificate-pdf-header-large {
    background: var(--background-alt);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.pdf-icon-large {
    font-size: 2rem;
    flex-shrink: 0;
}

.pdf-info-large {
    flex: 1;
    min-width: 0;
}

.pdf-name-large {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.pdf-size-large {
    font-size: 0.75rem;
    color: var(--text-light);
}

.pdf-download-btn-large {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pdf-download-btn-large:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pdf-download-btn-large i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

.certificate-preview-large {
    padding: 1.5rem;
    background: white;
    min-height: 200px;
}

.certificate-content-large {
    text-align: center;
}

.certificate-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.certificate-year-large {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.certificate-details-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.certificate-line-large {
    font-size: 0.875rem;
    color: var(--text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}


.certificate-email-header-large {
    background: var(--background-alt);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.email-header-title-large {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.certificate-email-body-large {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-to-field-large,
.email-subject-field-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-label-large {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.email-input-large {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--background-alt);
    font-family: inherit;
    outline: none;
}

.email-attachment-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text);
}

.email-attachment-large i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

.email-send-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.email-send-btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.email-send-btn-large i {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}


.success-icon-circle-large {
    width: 64px;
    height: 64px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-icon-circle-large i {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 3;
}

.success-text-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.success-details-large {
    font-size: 0.875rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .feature-certificate-animation-large {
        max-width: 100%;
        min-width: auto;
    }
    
    .certificate-container-large {
        max-width: 100%;
        height: 450px;
    }
}

[data-theme="dark"] .certificate-preview-large {
    background: #1e293b;
}

[data-theme="dark"] .certificate-line-large {
    border-bottom-color: #334155;
}

/* Blog Article Styles */
.blog-article-container {
    padding-top: 1rem;
    min-height: 100vh;
    background: var(--background);
}

.blog-article {
    width: 100%;
}

/* Breadcrumbs */
.blog-breadcrumbs {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.blog-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.blog-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--muted-foreground);
}

.breadcrumb-current {
    color: var(--foreground);
    font-weight: 500;
}

/* Article Header */
.blog-article-header {
    padding: 2rem 0 1.5rem;
    background: var(--background);
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.blog-article-date {
    color: var(--muted-foreground);
}

.blog-article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.blog-article-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    max-width: 800px;
}

/* TLDR Section */
.blog-tldr {
    padding: 2rem 0;
    background: var(--accent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blog-tldr-box {
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.blog-tldr-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-tldr-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.blog-tldr-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.blog-tldr-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--foreground);
}

.blog-tldr-content p {
    margin: 0;
}

.blog-tldr-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Article Content Layout */
.blog-article-content {
    padding: 3rem 0;
    background: var(--background);
}

.blog-article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Table of Contents */
.blog-toc {
    position: relative;
}

.blog-toc-sticky {
    position: sticky;
    top: 6rem;
}

.blog-toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.blog-toc-nav {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
}

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

.blog-toc-list li {
    margin-bottom: 0.5rem;
}

.blog-toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.blog-toc-list a:hover,
.blog-toc-list a.active {
    color: var(--primary);
    background: var(--accent);
}

/* Main Article Content */
.blog-article-main {
    max-width: 800px;
}

.blog-article-section {
    margin-bottom: 3rem;
    scroll-margin-top: 6rem;
}

.blog-article-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    padding-top: 0.5rem;
}

.blog-article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.blog-article-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.blog-article-section ul,
.blog-article-section ol {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-article-section li {
    margin-bottom: 0.75rem;
}

.blog-article-section a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-article-section a:hover {
    color: var(--primary-hover);
}

.blog-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--foreground);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
}

.blog-example-box {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.blog-example-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.blog-example-box p,
.blog-example-box ul {
    margin-bottom: 0.75rem;
}

.blog-info-box {
    background: var(--card);
    border: 1px solid var(--primary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.blog-info-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.blog-faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-faq-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Author Section */
.blog-author-section {
    padding: 4rem 0;
    background: var(--accent);
    border-top: 1px solid var(--border);
}

.blog-author-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.blog-author-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.blog-author-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
}

.blog-author-text p {
    margin-bottom: 1rem;
}

.blog-author-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-author-link:hover {
    color: var(--primary-hover);
}

/* Responsive Blog Styles */
@media (max-width: 968px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-toc {
        display: none;
    }
    
    .blog-article-title {
        font-size: 2.5rem;
    }
    
    .blog-article-excerpt {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .blog-article-container {
        padding-top: 0.5rem;
    }
    
    .blog-article-header {
        padding: 1.5rem 0 1rem;
    }
    
    .blog-breadcrumbs {
        padding: 0.75rem 0;
    }
    
    .blog-article-title {
        font-size: 2rem;
    }
    
    .blog-article-excerpt {
        font-size: 1rem;
    }
    
    .blog-article-content {
        padding: 2rem 0;
    }
    
    .blog-article-section {
        margin-bottom: 2rem;
    }
    
    .blog-article-section h2 {
        font-size: 1.75rem;
    }
    
    .blog-article-section h3 {
        font-size: 1.25rem;
    }
    
    .blog-article-section p,
    .blog-article-section ul,
    .blog-article-section ol {
        font-size: 1rem;
    }
    
    .blog-intro {
        font-size: 1.125rem;
    }
    
    .blog-tldr-box {
        padding: 1.25rem;
    }
    
    .blog-author-section {
        padding: 3rem 0;
    }
    
    .blog-author-box {
        padding: 1.5rem;
    }
}

/* Dark Mode Blog Styles */
[data-theme="dark"] .blog-tldr {
    background: #1e293b;
}

[data-theme="dark"] .blog-tldr-box {
    background: #0f172a;
    border-color: #3b82f6;
}

[data-theme="dark"] .blog-toc-nav {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .blog-example-box {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .blog-info-box {
    background: #1e293b;
    border-color: #3b82f6;
}

[data-theme="dark"] .blog-faq-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .blog-author-section {
    background: #1e293b;
}

[data-theme="dark"] .blog-author-box {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .blog-intro {
    background: #1e293b;
    border-color: #3b82f6;
}

/* Blog Overview Page Styles */
.blog-overview-container {
    padding-top: 1rem;
    min-height: 100vh;
    background: var(--background);
}

.blog-hero {
    padding: 2rem 0 1.5rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    text-align: center;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-articles-section {
    padding: 4rem 0;
    background: var(--background);
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
    border-color: var(--primary);
}

.blog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-card-date {
    color: var(--muted-foreground);
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.blog-card-link i {
    width: 16px;
    height: 16px;
}

/* Active nav menu item */
.nav-menu-item.active {
    color: var(--primary);
}

/* Responsive Blog Overview */
@media (max-width: 768px) {
    .blog-overview-container {
        padding-top: 0.5rem;
    }
    
    .blog-hero {
        padding: 1.5rem 0 1rem;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
    
    .blog-articles-section {
        padding: 2rem 0;
    }
    
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
}

/* Dark Mode Blog Overview */
[data-theme="dark"] .blog-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .blog-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}



