/* Custom styles beyond Tailwind */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tool container styles */
.tool-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Utility classes */
.code-block {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

/* Table of Contents styling */
.toc-item {
    position: relative;
    padding-left: 1.5rem;
}

.toc-item::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #4f46e5;
}

/* Focus styles */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive tables */
.table-responsive {
    @apply overflow-x-auto;
}

.table-responsive table {
    @apply min-w-full divide-y divide-gray-200;
}

/* navigation styles */
.mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 500px;
}

.navbar-shadow {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* Remove Duplicate Lines Custom minimal design */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.content-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.content-card:hover {
    border-color: #d1d5db;
}

.highlight-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.code-block {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.stat-number {
    background: linear-gradient(135deg, #f3f4f5 0%, #edeef1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern checkbox styling */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.custom-checkbox:hover {
    border-color: #9ca3af;
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-radio:checked {
    border-color: #3b82f6;
}

.custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Typography improvements */
.content-body {
    line-height: 1.7;
    color: #374151;
}

.content-body h2 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-body h3 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Responsive improvements */
@media (max-width: 640px) {
    .section-title::after {
        width: 40px;
    }

    .content-body h2 {
        font-size: 1.5rem;
    }

    .content-body h3 {
        font-size: 1.25rem;
    }
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Custom styles for SERP simulation */
.serp-desktop {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-radius: 8px;
    width: 100%;
}

.serp-mobile {
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    border-radius: 16px;
    max-width: 375px;
    margin: 0 auto;
}

.serp-title {
    color: #1a0dab;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.serp-url {
    color: #006621;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.serp-description {
    color: #545454;
    line-height: 1.58;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.serp-date {
    color: #70757a;
}

.serp-favicon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f3f4;
    flex-shrink: 0;
}

.serp-site-links {
    border-left: 3px solid #4285f4;
}

.serp-rich-snippet {
    background: #f8f9fa;
    border-left: 3px solid #34a853;
}

.serp-breadcrumb {
    color: #70757a;
}

.pixel-grid {
    background-image: linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 10px 10px;
}

.character-limit {
    background: linear-gradient(90deg, transparent 0%, transparent calc(100% - 4px), #ef4444 calc(100% - 4px), #ef4444 100%);
}

/* Responsive text sizes */
.serp-title {
    font-size: clamp(16px, 4vw, 20px);
}

.serp-url {
    font-size: clamp(12px, 3vw, 14px);
}

.serp-description {
    font-size: clamp(13px, 3.2vw, 14px);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .serp-mobile {
        max-width: 100%;
        margin: 0;
    }

    .serp-desktop {
        max-width: 100%;
        margin: 0;
    }

    .preview-toggle-buttons {
        flex-direction: column;
        width: 100%;
    }

    .preview-toggle-buttons button {
        width: 100%;
        margin-bottom: 8px;
    }

    .action-buttons-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .config-section {
        padding: 1rem !important;
    }

    .responsive-padding {
        padding: 1rem !important;
    }

    .responsive-text {
        font-size: 0.875rem !important;
    }

    .responsive-input {
        padding: 0.5rem !important;
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .lg\:col-span-2 {
        width: 100%;
    }
}

/* Mobile preview optimization */
@media (hover: none) and (pointer: coarse) {
    .faq-question {
        padding: 1rem 0;
    }

    button,
    input[type="checkbox"]+div,
    .favicon-color {
        min-height: 44px;
        min-width: 44px;
    }

    .preview-toggle-buttons button {
        padding: 12px 16px;
    }
}

/* Improve character counter visibility */
.character-limit {
    transition: border-color 0.3s ease;
}

.character-limit:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Dark mode adjustments */
.dark .serp-desktop,
.dark .serp-mobile {
    background: #1f2937;
    border-color: #374151;
}

.dark .serp-title {
    color: #60a5fa;
}

.dark .serp-url {
    color: #10b981;
}

.dark .serp-description {
    color: #d1d5db;
}

.dark .serp-rich-snippet {
    background: #374151;
    border-left-color: #10b981;
}

.dark .pixel-grid {
    background-image: linear-gradient(to right, #374151 1px, transparent 1px),
        linear-gradient(to bottom, #374151 1px, transparent 1px);
}

/* Ensure proper spacing on all devices */
.responsive-margin {
    margin-bottom: clamp(1rem, 3vw, 3rem);
}

/* Fix for action buttons on mobile */
@media (max-width: 640px) {

    #copySnippetBtn,
    #screenshotBtn,
    #shareBtn,
    #exportJsonBtn,
    #exportPngBtn {
        padding: 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    /* Fix preview toggle buttons */
    #desktopView,
    #mobileView {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

/* Fix for mobile preview container */
.serp-mobile {
    transition: all 0.3s ease;
}

/* Improve textarea responsiveness */
textarea {
    min-height: 80px;
    resize: vertical;
}

/* Fix for character counters on mobile */
@media (max-width: 480px) {
    .flex.items-center.space-x-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .flex.items-center.space-x-4>div {
        margin-right: 0.5rem;
    }
}

/* Ensure images don't overflow */
img,
canvas {
    max-width: 100%;
    height: auto;
}

/* Fix for notification positioning on mobile */
@media (max-width: 640px) {
    .action-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
}

/* Improve form controls on mobile */
input,
textarea,
select {
    font-size: 16px;
    /* Prevents zoom on iOS */
}

/* Truncation for long URLs and text */
.truncate-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sticky header effect */
.sticky {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Custom Slugify styles */
.code-block {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.code-block.inline {
    display: inline-block;
}

/* Responsive table */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Smooth transitions */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* TOC hover effect */
.toc-item {
    position: relative;
    padding-left: 1rem;
    transition: all 0.2s ease;
}

.toc-item:hover {
    padding-left: 1.5rem;
}

.toc-item::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

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

/* case converter styles */
@media (max-width: 640px) {
    .responsive-textarea {
        font-size: 14px;
        line-height: 1.4;
        min-height: 120px;
    }

    .responsive-grid {
        grid-template-columns: 1fr !important;
    }

    .case-button-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .responsive-button {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }

    .responsive-stats {
        font-size: 12px;
    }

    .preview-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-label {
        width: auto !important;
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .case-button-grid {
        gap: 0.5rem;
    }

    .history-container {
        max-height: 120px;
    }
}

@media (max-width: 1024px) {
    .case-button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Improve touch targets */
.case-btn,
button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    text-align: center;
}

/* Better textarea handling */
textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 400px;
}

/* Active case button style */
.case-btn.active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

/* Improve readability on mobile */
.prose {
    font-size: 16px;
    line-height: 1.6;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #686e7a;
}

.take-ways {
    font-weight: 700;
    color: #4b6cb3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Better overflow handling */
.overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* whitespace remover styles */
@media (max-width: 640px) {
    .tool-container {
        padding: 1rem !important;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons button {
        width: 100%;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.875rem;
    }

    .tool-title {
        font-size: 1.5rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Custom scrollbar */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth transitions */
.smooth-transition {
    transition: all 0.3s ease;
}

/* Highlight effect */
.highlight {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.content-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

/* Typography */
.content-body {
    line-height: 1.7;
    color: #374151;
}

.content-body h2 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
}

.content-body h3 {
    color: #1f2937;
    font-weight: 600;
}

/* FAQ Animations */
.rotate-180 {
    transform: rotate(180deg);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .section-title::after {
        width: 40px;
    }

    .content-body h2 {
        font-size: 1.5rem;
    }

    .content-body h3 {
        font-size: 1.25rem;
    }
}

/* nav active */
.nav-link.active {
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

/* char counter */
.navbar-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

.stat-card {
    background: linear-gradient(135deg, #f6f6f7 0%, #f5f4f7 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.5s ease;
}

.history-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.keyword-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background-color: #f9fafb;
    border: none;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
}

@media (max-width: 768px) {
    .responsive-textarea {
        min-height: 150px;
    }

    .responsive-stats {
        font-size: 0.75rem;
    }

    .responsive-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* about */
.navbar-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

.mission-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3b82f6;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* terms of service */
.terms-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.terms-section h2 {
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.warning-box {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.important-note {
    background: #f0f9ff;
    border-left: 4px solid #0369a1;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.disclaimer-box {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.acceptance-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.legal-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #0369a1;
}

@media (max-width: 768px) {
    .terms-section {
        padding: 1.5rem;
    }

    .legal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
}

/* privacy policy */
.navbar-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

.policy-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.policy-section h2 {
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.privacy-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-box {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.update-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.privacy-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #0369a1;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 1.5rem;
    }

    .privacy-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
}

/* contact */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background-color: #f9fafb;
    border: none;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f3f4f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}