/* =========================================================
   DHURVEX PORTFOLIO
   PREMIUM ANIMATIONS ONLY
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   1. BASE KEYFRAMES (reusable)
   ───────────────────────────────────────────────────────── */

@keyframes blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0); }
    50% { box-shadow: 0 0 35px rgba(212,175,55,.13); }
}

/* ─────────────────────────────────────────────────────────
   2. BACKGROUND FLOATING WORDS & EMOJIS ENGINE
   Fluid, GPU-accelerated celestial drift & layered depth
   ───────────────────────────────────────────────────────── */

.dx-bg-words {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.dx-bg-word {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
    -webkit-font-smoothing: antialiased;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.dx-bg-emoji-backdrop {
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
    transition: transform 0.3s ease;
    opacity: 0.85;
}

.dx-bg-text-layer {
    display: inline-block;
    letter-spacing: 1.2px;
    font-size: 0.88em;
}

/* 4 Styles: float, float-diagonal, drift, pulse-float */
.dx-bgw-float {
    animation-name: bgwFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.dx-bgw-float-diagonal {
    animation-name: bgwFloatDiag;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.dx-bgw-drift {
    animation-name: bgwDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.dx-bgw-pulse-float {
    animation-name: bgwPulseFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Motion Directions */
.dx-dir-up    { --dir-x: 0px;  --dir-y: -22px; }
.dx-dir-down  { --dir-x: 0px;  --dir-y: 22px; }
.dx-dir-left  { --dir-x: -24px; --dir-y: 0px; }
.dx-dir-right { --dir-x: 24px; --dir-y: 0px; }
.dx-dir-both  { --dir-x: 18px; --dir-y: 18px; }

/* Visible, fluid, organic floating keyframes */
@keyframes bgwFloat {
    0% {
        transform: translate(calc(-50% - var(--dir-x, 0px)), calc(-50% - var(--dir-y, 16px))) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
    100% {
        transform: translate(calc(-50% + var(--dir-x, 0px)), calc(-50% + var(--dir-y, 16px))) rotate(calc(var(--rot, 0deg) - 1.5deg));
    }
}

@keyframes bgwFloatDiag {
    0% {
        transform: translate(calc(-50% - 22px), calc(-50% - 18px)) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translate(calc(-50% + 14px), calc(-50% - 8px)) rotate(calc(var(--rot, 0deg) + 2deg));
    }
    100% {
        transform: translate(calc(-50% + 22px), calc(-50% + 18px)) rotate(calc(var(--rot, 0deg) - 2deg));
    }
}

@keyframes bgwDrift {
    0% {
        transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    }
    25% {
        transform: translate(calc(-50% + 24px), calc(-50% - 16px)) rotate(calc(var(--rot, 0deg) + 2.5deg));
    }
    50% {
        transform: translate(calc(-50% - 20px), calc(-50% + 20px)) rotate(calc(var(--rot, 0deg) - 2deg));
    }
    75% {
        transform: translate(calc(-50% + 16px), calc(-50% + 14px)) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    }
}

@keyframes bgwPulseFloat {
    0% {
        transform: translate(-50%, calc(-50% - 14px)) scale(0.96) rotate(var(--rot, 0deg));
        opacity: var(--op, 0.15);
    }
    50% {
        transform: translate(-50%, calc(-50% + 14px)) scale(1.08) rotate(calc(var(--rot, 0deg) + 2deg));
        opacity: calc(var(--op, 0.15) * 1.35);
    }
    100% {
        transform: translate(-50%, calc(-50% - 14px)) scale(0.96) rotate(var(--rot, 0deg));
        opacity: var(--op, 0.15);
    }
}

/* ─────────────────────────────────────────────────────────
   3. HERO — CINEMATIC REVEAL
   ───────────────────────────────────────────────────────── */

.cinematic-hero .home-hero-title,
.cinematic-hero .section-hero h1 {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(8px);
    animation:
        cinematicFade 1.2s cubic-bezier(.2,.8,.2,1) .2s forwards,
        cinematicUnblur 1.2s cubic-bezier(.2,.8,.2,1) .2s forwards;
}

.cinematic-hero .home-hero-title span,
.cinematic-hero .section-hero h1 span {
    background-size: 200% 100%;
    animation: shimmerGradient 4s linear 1.5s infinite;
}

.cinematic-hero .home-hero-typing,
.cinematic-hero .hero-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slideFade .9s cubic-bezier(.2,.8,.2,1) .6s forwards;
}

.cinematic-hero .home-hero-desc,
.cinematic-hero .section-label {
    opacity: 0;
    transform: translateY(15px);
    animation: slideFade .8s cubic-bezier(.2,.8,.2,1) .9s forwards;
}

.cinematic-hero .home-hero-stats > *,
.cinematic-hero .home-hero-visual {
    opacity: 0;
    transform: translateY(25px);
    animation: slideFade .9s cubic-bezier(.2,.8,.2,1) 1.1s forwards;
}

.cinematic-hero .home-hero-stats > *:nth-child(2) { animation-delay: 1.25s; }
.cinematic-hero .home-hero-stats > *:nth-child(3) { animation-delay: 1.4s; }

@keyframes cinematicFade {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cinematicUnblur {
    to { filter: blur(0); }
}
@keyframes shimmerGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes slideFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Apply cinematic class via reveal to hero sections */
.home-hero,
.section-hero {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.home-hero.show,
.section-hero.show {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────────────────────
   4. ABOUT — STAGGERED REVEAL
   ───────────────────────────────────────────────────────── */

.about-stagger > * {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.about-stagger.show > * {
    opacity: 1;
    transform: none;
}
.about-stagger > *:nth-child(1) { transition-delay: 0s; }
.about-stagger > *:nth-child(2) { transition-delay: .04s; }
.about-stagger > *:nth-child(3) { transition-delay: .08s; }
.about-stagger > *:nth-child(4) { transition-delay: .12s; }
.about-stagger > *:nth-child(5) { transition-delay: .16s; }
.about-stagger > *:nth-child(6) { transition-delay: .20s; }
.about-stagger > *:nth-child(7) { transition-delay: .24s; }
.about-stagger > *:nth-child(8) { transition-delay: .28s; }
.about-stagger > *:nth-child(9) { transition-delay: .32s; }
.about-stagger > *:nth-child(10) { transition-delay: .36s; }

/* ─────────────────────────────────────────────────────────
   5. SKILLS — CARD ANIMATION
   ───────────────────────────────────────────────────────── */

.skill-card {
    opacity: 1;
    transform: none;
    transition:
        opacity .4s ease,
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .25s ease;
}
.skill-card.show {
    opacity: 1;
    transform: none;
}
.skill-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 28px var(--primary-glow);
}
.skill-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
}
.skill-card:hover::before { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   6. JOURNEY — TIMELINE REVEAL
   ───────────────────────────────────────────────────────── */

.timeline-item {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.timeline-item.show {
    opacity: 1;
    transform: none;
}
.timeline-dot {
    transform: scale(1);
    transition: transform .4s ease;
}
.timeline-item.show .timeline-dot {
    transform: scale(1);
}

/* ─────────────────────────────────────────────────────────
   7. PROJECTS — SLIDER / REVEAL
   ───────────────────────────────────────────────────────── */

.project-slider-card,
.project-card {
    opacity: 1 !important;
    transform: none !important;
}
.project-slider-card:hover,
.project-card:hover {
    transform: translateY(-5px) scale(1.01) !important;
}

/* ─────────────────────────────────────────────────────────
   8. GALLERY — IMAGE TRANSITION
   ───────────────────────────────────────────────────────── */

.gallery-card,
.gallery-item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}
.gallery-card:hover img,
.gallery-item:hover img {
    transform: scale(1.06);
    transition: transform .4s ease;
}

/* ─────────────────────────────────────────────────────────
   9. MUSIC & VIDEO — WAVEFORM / EQUALIZER
   ───────────────────────────────────────────────────────── */

.music-card,
.video-card {
    opacity: 1 !important;
    transform: none !important;
}
.waveform-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}
.waveform-bars i {
    display: block;
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: waveEq 1s ease-in-out infinite alternate;
}
.waveform-bars i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.waveform-bars i:nth-child(2) { height: 14px; animation-delay: .15s; }
.waveform-bars i:nth-child(3) { height: 10px; animation-delay: .3s; }
.waveform-bars i:nth-child(4) { height: 16px; animation-delay: .45s; }
.waveform-bars i:nth-child(5) { height: 8px;  animation-delay: .6s; }
@keyframes waveEq {
    0%   { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

/* ─────────────────────────────────────────────────────────
   10. BLOG — STAGGERED CARDS
   ───────────────────────────────────────────────────────── */

.blog-stagger-grid .blog-card {
    opacity: 1 !important;
    transform: none !important;
}
.blog-stagger-grid .blog-card:hover {
    transform: translateY(-5px) scale(1.01);
}

/* ─────────────────────────────────────────────────────────
   11. CONTACT — SMOOTH FORM ANIMATION
   ───────────────────────────────────────────────────────── */

.contact-form-wrap {
    opacity: 1 !important;
    transform: none !important;
}
.contact-form-wrap .form-group {
    opacity: 1 !important;
    transform: none !important;
}

/* ─────────────────────────────────────────────────────────
   12. NAVIGATION — SUBTLE ACTIVE ANIMATION
   ───────────────────────────────────────────────────────── */

.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .3s cubic-bezier(.2,.8,.2,1);
    opacity: 0;
}
.nav-link:hover::before,
.nav-link.active::before {
    width: 65%;
    opacity: 1;
}
.nav-link.active {
    animation: navActivePulse .5s cubic-bezier(.2,1.4,.3,1);
}
@keyframes navActivePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────────────────
   13. ADMIN PANEL — CLEAN DASHBOARD TRANSITIONS
   ───────────────────────────────────────────────────────── */

.adm-card,
.adm-dashboard-stat,
.adm-table-row {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity .45s ease,
        transform .45s cubic-bezier(.2,.8,.2,1);
}
.adm-card.show,
.adm-dashboard-stat.show,
.adm-table-row.show {
    opacity: 1;
    transform: translateY(0);
}
.adm-settings-tab.active {
    animation: admTabPulse .45s cubic-bezier(.2,1.4,.3,1);
}
@keyframes admTabPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.settings-tab-panel {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity .35s ease,
        transform .35s ease;
}
.settings-tab-panel:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   14. EXISTING UTILITIES
   ───────────────────────────────────────────────────────── */

.hero-image-wrap {
    animation: floatUp 6s ease-in-out infinite;
}

.profile-card {
    animation: pulseGlow 4s ease-in-out infinite;
}

.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.reveal-delay {
    transition-delay: .18s;
}

.feature-card:nth-child(2) {
    transition-delay: .08s;
}

.feature-card:nth-child(3) {
    transition-delay: .16s;
}

/* ─────────────────────────────────────────────────────────
   15. PREFERS REDUCED MOTION — all animations respect this
   ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal,
    .home-hero,
    .section-hero,
    .skill-card,
    .timeline-item,
    .project-slider-card,
    .project-card,
    .gallery-card,
    .gallery-item,
    .music-card,
    .video-card,
    .blog-card,
    .contact-form-wrap,
    .about-stagger > *,
    .adm-card,
    .adm-dashboard-stat,
    .adm-table-row {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }

    .dx-bg-word {
        animation: none !important;
        opacity: var(--op, 0.15) !important;
        transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) !important;
    }
}


/* =========================================================
   16. ADVANCED TYPING ANIMATIONS (ADMIN-CONTROLLED)
   ========================================================= */

.dx-typing-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    font-weight: 700;
}

.dx-typing-prefix {
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
}

.dx-typing-text {
    background: linear-gradient(135deg, #ffffff 0%, #f5e27a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
    min-height: 1.2em;
    display: inline-block;
    transition: color 0.2s ease;
}

.dx-typing-cursor {
    display: inline-block;
    color: var(--dx-cursor-color, #d4af37);
    font-weight: 300;
    margin-left: 2px;
    animation: dxCursorBlink 0.9s infinite cubic-bezier(0.4, 0, 0.6, 1);
    user-select: none;
    line-height: 1;
}

@keyframes dxCursorBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* =========================================================
   17. ADVANCED 3D TILT & SPECULAR GLARE (CENOVA INSPIRED)
   ========================================================= */

.dx-3d-card,
.service-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
    overflow: hidden;
}

.dx-3d-card.dx-tilting,
.service-card.dx-tilting {
    transition: transform 0.08s linear; /* Fast response during active mouse movement */
}

/* Dynamic Glare Specular Sheen */
.dx-card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle 300px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.16) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    z-index: 5;
}

.dx-3d-card:hover .dx-card-glare,
.service-card:hover .dx-card-glare {
    opacity: 1;
}

/* 3D Inner Content Lift */
.dx-3d-lift {
    transform: translateZ(24px);
    transition: transform 0.25s ease;
}

/* =========================================================
   18. 3D TYPOGRAPHY & HEADINGS
   ========================================================= */

.dx-3d-heading {
    position: relative;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 8px 24px rgba(212,175,55,0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s ease;
}

.dx-3d-heading:hover {
    transform: perspective(600px) translateZ(8px) scale(1.01);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 12px 32px rgba(212,175,55,0.3);
}

.dx-heading-shimmer {
    background: linear-gradient(110deg, #ffffff 20%, #d4af37 40%, #ffffff 60%, #f5e27a 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dxShimmer 6s linear infinite;
}

@keyframes dxShimmer {
    to { background-position: 200% center; }
}

/* =========================================================
   19. FLOATING 3D VISUAL ELEMENTS
   ========================================================= */

.dx-float-3d {
    animation: dxFloat3D 5s ease-in-out infinite;
    will-change: transform;
}

.dx-float-3d-reverse {
    animation: dxFloat3D 6s ease-in-out 1.5s infinite reverse;
    will-change: transform;
}

@keyframes dxFloat3D {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -12px, 15px) rotate(1.5deg);
    }
}

/* =========================================================
   20. MAGNETIC & GLOWING BUTTONS
   ========================================================= */

.dx-magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.dx-btn-border-glow {
    position: relative;
}

.dx-btn-border-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,175,55,0.6), transparent, rgba(212,175,55,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(4px);
}

.dx-btn-border-glow:hover::after {
    opacity: 1;
}

/* =========================================================
   21. AMBIENT BACKGROUND GRADIENT MESH
   ========================================================= */

.dx-ambient-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.dx-mesh-glow-sphere {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    background: radial-gradient(circle, var(--primary, #d4af37) 0%, rgba(212,175,55,0.1) 50%, transparent 70%);
    animation: dxMeshFloat 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes dxMeshFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* =========================================================
   22. MOBILE AND TOUCH DEVICE GUARDS
   ========================================================= */

@media (hover: none) and (pointer: coarse) {
    /* Touch devices: disable continuous 3D tilt tracking to ensure buttery scroll */
    .dx-3d-card,
    .service-card {
        transform: none !important;
    }
    .dx-card-glare {
        display: none !important;
    }
    .dx-magnetic-btn {
        transform: none !important;
    }
}


/* =========================================================
   23. DIRECTIONAL SLIDE-IN ENTRANCES (LEFT & RIGHT)
   ========================================================= */

.dx-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.dx-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.dx-slide-left.show,
.dx-slide-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   24. CONFIGURABLE CARD SHADOW & DEPTH PROFILES
   ========================================================= */

:root {
    --dx-shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.45);
    --dx-shadow-medium: 0 16px 36px rgba(0, 0, 0, 0.6), -8px 0 25px rgba(0, 0, 0, 0.25), 8px 0 25px rgba(212, 175, 55, 0.12);
    --dx-shadow-deep: 0 24px 50px rgba(0, 0, 0, 0.75), -14px 0 35px rgba(0, 0, 0, 0.35), 14px 0 35px rgba(212, 175, 55, 0.2);
    --dx-active-shadow: var(--dx-shadow-medium);
}

[data-card-shadow="subtle"] {
    --dx-active-shadow: var(--dx-shadow-subtle);
}

[data-card-shadow="medium"] {
    --dx-active-shadow: var(--dx-shadow-medium);
}

[data-card-shadow="deep"] {
    --dx-active-shadow: var(--dx-shadow-deep);
}

.service-card:hover,
.project-card:hover,
.dx-3d-card:hover {
    box-shadow: var(--dx-active-shadow) !important;
}


/* =========================================================
   25. GLOBAL TITLE ANIMATIONS & ELEGANT TYPOGRAPHY SUITE
   ========================================================= */

.dx-title-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.dx-title-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.dx-title-slide-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.dx-title-slide-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.dx-title-slide-left.show,
.dx-title-slide-right.show {
    opacity: 1;
    transform: translateX(0);
}

.dx-gradient-title {
    background: linear-gradient(135deg, #ffffff 30%, #f5e27a 70%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dx-title-depth {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(212, 175, 55, 0.16);
    letter-spacing: -0.5px;
}

.dx-title-glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Enhanced default transitions on major section headings */
.section-hero h1,
.section-title,
.home-section-title {
    position: relative;
    transition: letter-spacing 0.3s ease, text-shadow 0.3s ease;
}

.section-hero h1:hover,
.section-title:hover {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 28px rgba(212, 175, 55, 0.28);
}
