/* Animate a Drawing - Main Styles */

/* General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    color: var(--gray-900, #111827);
}

.navbar-light .nav-link {
    color: var(--gray-600, #4b5563);
}

.navbar-light .nav-link:hover {
    color: var(--gray-900, #111827);
}

/* Dropdown menu scrollable */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Forms */
.form-control:focus {
    border-color: var(--accent, #3b82f6);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-label {
    color: var(--gray-700, #374151);
    font-weight: 500;
}

/* Alerts */
.alert ul {
    margin: 0;
    padding-left: 1rem;
}

/* Pricing */
.pricing-card {
    border-radius: var(--radius-lg, 0.5rem);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
}

.pricing-card.featured {
    border: 2px solid var(--gray-900, #111827);
}

/* Payment form */
#card-element {
    border: 1px solid var(--gray-300, #d1d5db);
    padding: 0.75rem;
    border-radius: var(--radius-md, 0.375rem);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Hero Section */
.hero-gradient {
    color: var(--white, #ffffff);
}

.hero-gradient h1 {
    color: var(--white, #ffffff);
}

/* Cards */
.card {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-lg, 0.5rem);
}

.card-header {
    background-color: var(--gray-50, #f9fafb);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent, #3b82f6);
    border-color: var(--accent, #3b82f6);
}

.btn-primary:hover {
    background-color: var(--accent-hover, #2563eb);
    border-color: var(--accent-hover, #2563eb);
}

.btn-outline-primary {
    color: var(--accent, #3b82f6);
    border-color: var(--accent, #3b82f6);
}

.btn-outline-primary:hover {
    background-color: var(--accent, #3b82f6);
    border-color: var(--accent, #3b82f6);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--gray-300, #d1d5db);
    border-radius: var(--radius-lg, 0.5rem);
    background-color: var(--gray-50, #f9fafb);
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--accent, #3b82f6);
    background-color: var(--accent-light, #dbeafe);
}

.upload-zone.drag-over {
    border-color: var(--accent, #3b82f6);
    background-color: var(--accent-light, #dbeafe);
}

/* Motion Presets */
.motion-preset-item {
    padding: 0.5rem;
    border-radius: var(--radius-sm, 0.25rem);
    transition: background-color 0.15s;
}

.motion-preset-item:hover {
    background-color: var(--gray-100, #f3f4f6);
}

/* FAQ Accordion */
.faq-section {
    padding: 3rem 0;
}

.faq-section h2 {
    color: var(--gray-900, #111827);
    margin-bottom: 2rem;
}

.accordion-item {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-md, 0.375rem) !important;
    margin-bottom: 0.5rem;
}

.accordion-button {
    font-weight: 600;
    color: var(--gray-900, #111827);
    background-color: var(--white, #ffffff);
}

.accordion-button:not(.collapsed) {
    color: var(--gray-900, #111827);
    background-color: var(--gray-50, #f9fafb);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px var(--accent-light, #dbeafe);
    border-color: var(--accent, #3b82f6);
}

.accordion-button::after {
    filter: grayscale(100%);
}

.accordion-body {
    color: var(--gray-600, #4b5563);
    line-height: 1.7;
}

/* Footer - Dark theme */
footer.bg-dark {
    background-color: #1f2937 !important;
}

footer.bg-dark h5,
footer.bg-dark h6 {
    color: #ffffff !important;
}

footer.bg-dark p,
footer.bg-dark .text-muted {
    color: #9ca3af !important;
}

footer.bg-dark a {
    color: #9ca3af !important;
    transition: color 0.15s;
}

footer.bg-dark a:hover {
    color: #ffffff !important;
}

footer.bg-dark hr {
    border-color: #374151 !important;
}

/* Footer - Light theme fallback */
footer.bg-light {
    background-color: var(--gray-100, #f3f4f6);
    color: var(--gray-600, #4b5563);
}

footer.bg-light a {
    color: var(--gray-600, #4b5563);
    transition: color 0.15s;
}

footer.bg-light a:hover {
    color: var(--gray-900, #111827);
}

/* Feature icons */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background-color: var(--gray-100, #f3f4f6);
}

.feature-icon-wrapper svg {
    color: var(--gray-700, #374151);
}

/* Step numbers */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--gray-900, #111827);
    color: var(--white, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

/* Project thumbnails */
.project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--gray-100, #f3f4f6);
}

/* Animation timeline */
.timeline-container {
    background-color: var(--gray-800, #1f2937);
    border-radius: var(--radius-md, 0.375rem);
    padding: 1rem;
}

.timeline-track {
    background-color: var(--gray-600, #4b5563);
    height: 4px;
    border-radius: 2px;
    position: relative;
}

.timeline-progress {
    background-color: var(--accent, #3b82f6);
    height: 100%;
    border-radius: 2px;
}

/* Text colors */
.text-gray-900 { color: var(--gray-900, #111827) !important; }
.text-gray-700 { color: var(--gray-700, #374151) !important; }
.text-gray-600 { color: var(--gray-600, #4b5563) !important; }
.text-gray-500 { color: var(--gray-500, #6b7280) !important; }
.text-gray-400 { color: var(--gray-400, #9ca3af) !important; }

/* Background colors */
.bg-gray-900 { background-color: var(--gray-900, #111827) !important; }
.bg-gray-800 { background-color: var(--gray-800, #1f2937) !important; }
.bg-gray-100 { background-color: var(--gray-100, #f3f4f6) !important; }
.bg-gray-50 { background-color: var(--gray-50, #f9fafb) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .hero-gradient {
        padding: 2rem 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
}
