/*
Theme Name: DriverHub
Theme URI: https://driverhub.com
Author: DriverHub Team
Author URI: https://driverhub.com
Description: A premium WordPress theme for DriverHub - hire professional drivers on demand. Features beige and gold luxury design with smooth animations.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== CSS VARIABLES (Beige & Gold Theme) ===== */
:root {
    /* Colors - HSL format for Tailwind compatibility */
    --color-background: 40, 47%, 96%;
    /* Lighter Beige */
    --color-foreground: 0, 0%, 10%;
    /* Soft Black */
    --color-primary: 0, 0%, 0%;
    /* Black */
    --color-primary-foreground: 40, 47%, 96%;
    --color-secondary: 40, 30%, 90%;
    /* Muted Beige */
    --color-accent: 43, 74%, 49%;
    /* Rich Gold #D4AF37 */
    --color-muted: 0, 0%, 40%;
    --color-border: 40, 20%, 85%;

    /* Explicit Hex Colors for Reliability */
    --hex-black: #050505;
    --hex-gold: #D4AF37;
    --hex-beige: #F9F7F2;
    --hex-white: #FFFFFF;

    /* Spacing & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.5);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--color-foreground));
    background-color: hsl(var(--color-background));
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slide-in-left 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.4s ease-out forwards;
}

/* Delay classes for staggered animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* ===== HEADER STYLES ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 238, 221, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--color-border));
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: hsl(var(--color-foreground));
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--color-accent));
    transition: width 0.3s ease;
}

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

.main-nav a:hover {
    color: hsl(var(--color-accent));
}

/* ===== BUTTON STYLES ===== */
.btn-primary,
.btn-accent,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: hsl(var(--color-primary));
    color: hsl(var(--color-primary-foreground));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: hsl(var(--color-accent));
    color: hsl(var(--color-foreground));
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--color-border));
    color: hsl(var(--color-foreground));
}

.btn-outline:hover {
    border-color: hsl(var(--color-accent));
    color: hsl(var(--color-accent));
}

/* ===== CARD STYLES ===== */
.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: hsl(var(--color-accent));
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--color-accent)), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-primary {
    background: var(--hex-black) !important;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    color: white !important;
}

.gradient-accent {
    background: linear-gradient(135deg, hsl(var(--color-accent)) 0%, hsl(var(--color-accent) / 0.7) 100%);
}

.gradient-beige {
    background: linear-gradient(135deg, hsl(var(--color-background)) 0%, hsl(var(--color-secondary)) 100%);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== WORDPRESS SPECIFIC ===== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--color-muted));
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-open .main-nav {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background: hsl(var(--color-accent));
    color: hsl(var(--color-foreground));
}

/* ===== FOCUS STATES ===== */
:focus-visible {
    outline: 2px solid hsl(var(--color-accent));
    outline-offset: 2px;
}

/* ===== LOADING STATE ===== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--color-background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--color-accent));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--color-accent) / 0.8);
}

/* ===== BUTTON COMPONENT STYLES (Matching React shadcn/ui) ===== */

/* Base Button Styles */
.btn,
button[class*="btn-"],
a[class*="btn-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:focus-visible,
button[class*="btn-"]:focus-visible,
a[class*="btn-"]:focus-visible {
    outline: 2px solid hsl(43, 74%, 53%);
    outline-offset: 2px;
}

.btn:disabled,
button[class*="btn-"]:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn svg,
button[class*="btn-"] svg,
a[class*="btn-"] svg {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Button Variants */
.btn-default,
.btn-primary {
    background: hsl(0, 0%, 0%);
    color: hsl(40, 47%, 93%);
}

.btn-default:hover,
.btn-primary:hover {
    background: hsl(0, 0%, 10%);
}

.btn-outline {
    border: 1px solid hsl(40, 20%, 80%);
    background: transparent;
    color: hsl(0, 0%, 0%);
}

.btn-outline:hover {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
}

.btn-secondary {
    background: hsl(40, 47%, 88%);
    color: hsl(0, 0%, 0%);
}

.btn-secondary:hover {
    background: hsl(40, 47%, 83%);
}

.btn-ghost {
    background: transparent;
    color: hsl(0, 0%, 0%);
}

.btn-ghost:hover {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
}

.btn-hero {
    background: hsl(0, 0%, 0%);
    color: hsl(40, 47%, 93%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: hsl(0, 0%, 10%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-accent {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: hsl(43, 74%, 48%);
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
    height: 2.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 3rem;
    border-radius: 0.75rem;
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
}

.btn-xl {
    height: 3.5rem;
    border-radius: 0.75rem;
    padding: 0.75rem 3rem;
    font-size: 1.125rem;
}

/* Input & Textarea */
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(40, 20%, 80%);
    background: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.textarea,
textarea {
    min-height: 5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(40, 20%, 80%);
    background: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.input:focus,
.textarea:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: hsl(43, 74%, 53%);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Label */
label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(0, 0%, 0%);
    margin-bottom: 0.5rem;
    display: inline-block;
}


/* ===== BUTTON COMPONENT STYLES (Matching React shadcn/ui) ===== */

/* Base Button Styles */
.btn,
button[class*="btn-"],
a[class*="btn-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

/* Focus visible ring */
.btn:focus-visible,
button[class*="btn-"]:focus-visible,
a[class*="btn-"]:focus-visible {
    outline: 2px solid hsl(var(--color-accent));
    outline-offset: 2px;
}

/* Disabled state */
.btn:disabled,
button[class*="btn-"]:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* SVG icon sizing */
.btn svg,
button[class*="btn-"] svg,
a[class*="btn-"] svg {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ===== BUTTON VARIANTS ===== */

/* Default Variant */
.btn-default,
.btn-primary {
    background: hsl(0, 0%, 0%);
    color: hsl(40, 47%, 93%);
}

.btn-default:hover,
.btn-primary:hover {
    background: hsl(0, 0%, 10%);
}

/* Destructive Variant */
.btn-destructive {
    background: hsl(0, 84%, 60%);
    color: white;
}

.btn-destructive:hover {
    background: hsl(0, 84%, 50%);
}

/* Outline Variant */
.btn-outline {
    border: 1px solid hsl(40, 20%, 80%);
    background: transparent;
    color: hsl(0, 0%, 0%);
}

.btn-outline:hover {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
}

/* Secondary Variant */
.btn-secondary {
    background: hsl(40, 47%, 88%);
    color: hsl(0, 0%, 0%);
}

.btn-secondary:hover {
    background: hsl(40, 47%, 83%);
}

/* Ghost Variant */
.btn-ghost {
    background: transparent;
    color: hsl(0, 0%, 0%);
}

.btn-ghost:hover {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
}

/* Link Variant */
.btn-link {
    background: transparent;
    color: hsl(0, 0%, 0%);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-link:hover {
    text-decoration: none;
}

/* Hero Variant (Large Primary with Shadow) */
.btn-hero {
    background: hsl(0, 0%, 0%);
    color: hsl(40, 47%, 93%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: hsl(0, 0%, 10%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Accent Variant (Gold with Glow) */
.btn-accent {
    background: hsl(43, 74%, 53%);
    color: hsl(0, 0%, 0%);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: glow-pulse 2s ease-in-out infinite;
}

.btn-accent:hover {
    background: hsl(43, 74%, 48%);
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 10px 30px -3px rgba(212, 175, 55, 0.5);
    }
}

/* ===== BUTTON SIZES ===== */

/* Default Size */
.btn-size-default,
.btn {
    height: 2.5rem;
    padding: 0.5rem 1rem;
}

/* Small Size */
.btn-sm,
.btn-size-sm {
    height: 2.25rem;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Large Size */
.btn-lg,
.btn-size-lg {
    height: 3rem;
    border-radius: 0.75rem;
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
}

/* Extra Large Size */
.btn-xl,
.btn-size-xl {
    height: 3.5rem;
    border-radius: 0.75rem;
    padding: 0.75rem 3rem;
    font-size: 1.125rem;
}

/* Icon Size (Square) */
.btn-icon,
.btn-size-icon {
    height: 2.5rem;
    width: 2.5rem;
    padding: 0;
}

/* ===== CARD COMPONENT STYLES ===== */

.card {
    border-radius: 0.5rem;
    border: 1px solid hsl(40, 20%, 80%);
    background: white;
    color: hsl(0, 0%, 0%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(0, 0%, 45%);
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    padding-top: 0;
}

/* ===== AVATAR COMPONENT STYLES ===== */

.avatar {
    position: relative;
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 9999px;
}

.avatar-image {
    aspect-ratio: 1 / 1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: hsl(40, 47%, 88%);
    color: hsl(0, 0%, 0%);
    font-weight: 600;
}

/* Avatar Sizes */
.avatar-sm {
    height: 2rem;
    width: 2rem;
}

.avatar-lg {
    height: 3rem;
    width: 3rem;
}

.avatar-xl {
    height: 4rem;
    width: 4rem;
}

/* ===== INPUT COMPONENT STYLES ===== */

.input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(40, 20%, 80%);
    background: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: hsl(43, 74%, 53%);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.input::placeholder {
    color: hsl(0, 0%, 60%);
}

/* ===== TEXTAREA COMPONENT STYLES ===== */

.textarea {
    display: flex;
    min-height: 5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(40, 20%, 80%);
    background: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all 0.2s;
    resize: vertical;
}

.textarea:focus {
    outline: none;
    border-color: hsl(43, 74%, 53%);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.textarea::placeholder {
    color: hsl(0, 0%, 60%);
}

/* ===== LABEL COMPONENT STYLES ===== */

.label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: hsl(0, 0%, 0%);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.label:has(+ .input:disabled),
.label:has(+ .textarea:disabled) {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== UTILITY CLASSES ===== */

/* Text Colors */
.text-muted {
    color: hsl(0, 0%, 45%);
}

.text-accent {
    color: hsl(43, 74%, 53%);
}

.text-primary {
    color: hsl(0, 0%, 0%);
}

/* Background Colors */
.bg-muted {
    background: hsl(40, 47%, 90%);
}

.bg-accent {
    background: hsl(43, 74%, 53%);
}

.bg-primary {
    background: hsl(0, 0%, 0%);
}

.text-primary-foreground {
    color: hsl(40, 47%, 96%);
}

/* Responsive Button Stacking */
@media (max-width: 640px) {
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-group .btn,
    .btn-group button,
    .btn-group a {
        width: 100%;
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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


/* ...existing code... */
/* Animation fallbacks / helpers used in templates */
@keyframes dh-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes dh-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes dh-glow {
    0% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
        transform: translateY(-4px);
    }

    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-fade-in.in-view {
    animation: dh-fade-in .6s cubic-bezier(.2, .9, .2, 1) both;
}

.animate-fade-in-up {
    opacity: 0;
    will-change: opacity, transform;
}

.animate-fade-in-up.in-view {
    animation: dh-fade-in-up .7s cubic-bezier(.2, .9, .2, 1) both;
}

.animate-glow {
    transition: box-shadow .28s ease, transform .2s ease;
}

.animate-glow.in-view {
    animation: dh-glow 2.2s ease-in-out infinite;
}

/* fallback for Tailwind transition classes */
.transition-colors {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}