/* Animation for the scrolling banner */
@keyframes scroll-left {
    0% {
        transform: translateX(80%);
    }

    100% {
        transform: translateX(-80%);
    }
}

.animate-scroll {
    display: inline-block;
    padding-left: 10%;
    /* Push text off screen initially */
    animation: scroll-left 30s linear infinite;
}

/* Pause animation on hover so people can click the link */
.animate-scroll:hover {
    animation-play-state: paused;
}

/* Define custom properties for your color palette */
:root {
    /* Light mode colors */
    --bg-primary: #FDFBF7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #334155;
    --accent-light: #e2e8f0;
    --bg-white: #ffffff;
    --bg-section: #fdfdfd;
    --border-color: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --divider-color: #e5e7eb;
    --banner-bg: #fef3c7;
    --banner-border: #fde68a;
}

/* Dark mode colors - Zinc and Coal palette */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    /* Coal black */
    --text-primary: #fafafa;
    /* Zinc-50 */
    --text-secondary: #a1a1aa;
    /* Zinc-400 */
    --accent: #71717a;
    /* Zinc-500 */
    --accent-light: #27272a;
    /* Zinc-800 */
    --bg-white: #18181b;
    /* Zinc-900 */
    --bg-section: #1a1a1a;
    /* Slightly lighter coal */
    --border-color: #27272a;
    /* Zinc-800 */
    --header-bg: rgba(24, 24, 27, 0.9);
    /* Zinc-900 with opacity */
    --card-bg: #18181b;
    /* Zinc-900 */
    --divider-color: #27272a;
    /* Zinc-800 */
    --banner-bg: #27272a;
    /* Zinc-800 */
    --banner-border: #3f3f46;
    /* Zinc-700 */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Apply the serif font for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lora', serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    letter-spacing: -0.03em;
}

/* Custom accent color classes */
.accent-text {
    color: var(--accent);
}

.accent-bg {
    background-color: var(--accent);
}

.hover\:accent-text:hover {
    color: var(--accent);
}

.border-accent {
    border-color: var(--accent);
}

/* Thin, light gray divider style */
.divider {
    border-top: 1px solid var(--divider-color);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

/* Custom styles for the secondary button */
.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.15);
}

/* Premium shadow utilities */
.shadow-premium {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.shadow-premium-hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Card hover effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Image overlay on hover */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 65, 85, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.image-overlay:hover::after {
    background: rgba(51, 65, 85, 0.05);
}

/* Dark mode toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
