/* ==========================================
   ULTIMATE PREMIUM VISUAL ENHANCEMENTS
   Advanced beautiful effects and animations
   ========================================== */

/* Animated Gradient Mesh Background */
.premium-bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.premium-bg-mesh::before,
.premium-bg-mesh::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(100px);
    animation: morphBlob 20s ease-in-out infinite;
}

.premium-bg-mesh::before {
    background: radial-gradient(circle, rgba(212, 148, 26, 0.3), rgba(125, 90, 80, 0.2));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.premium-bg-mesh::after {
    background: radial-gradient(circle, rgba(161, 136, 127, 0.3), rgba(212, 148, 26, 0.2));
    bottom: -200px;
    right: -200px;
    animation-delay: 10s;
}

@keyframes morphBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -100px) scale(1.1);
    }

    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Floating Musical Notes Particles */
.musical-notes-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.musical-note {
    position: absolute;
    font-size: 24px;
    opacity: 0.15;
    animation: floatNote 15s ease-in-out infinite;
}

.musical-note:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.musical-note:nth-child(2) {
    left: 25%;
    animation-delay: 3s;
}

.musical-note:nth-child(3) {
    left: 40%;
    animation-delay: 6s;
}

.musical-note:nth-child(4) {
    left: 60%;
    animation-delay: 9s;
}

.musical-note:nth-child(5) {
    left: 75%;
    animation-delay: 12s;
}

.musical-note:nth-child(6) {
    left: 90%;
    animation-delay: 2s;
}

@keyframes floatNote {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glassmorphic Floating Orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 148, 26, 0.1), rgba(125, 90, 80, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 148, 26, 0.2);
    pointer-events: none;
    z-index: -1;
    animation: floatOrb 20s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.floating-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 60%;
    animation-delay: 14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* 3D Tilt Effect on Cards */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale3d(1.05, 1.05, 1.05);
}

/* Shine Overlay Effect */
.shine-overlay {
    position: relative;
    overflow: hidden;
}

.shine-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s;
}

.shine-overlay:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic:hover {
    transform: translate(var(--magnetic-x, 0), var(--magnetic-y, 0));
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(90deg,
            #7D5A50,
            #D4941A,
            #F0B429,
            #D4941A,
            #7D5A50);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Text Glow Effect */
.text-glow {
    text-shadow:
        0 0 10px rgba(212, 148, 26, 0.3),
        0 0 20px rgba(212, 148, 26, 0.2),
        0 0 30px rgba(212, 148, 26, 0.1);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(212, 148, 26, 0.3),
            0 0 20px rgba(212, 148, 26, 0.2),
            0 0 30px rgba(212, 148, 26, 0.1);
    }

    50% {
        text-shadow:
            0 0 15px rgba(212, 148, 26, 0.5),
            0 0 30px rgba(212, 148, 26, 0.3),
            0 0 45px rgba(212, 148, 26, 0.2);
    }
}

/* Ripple Click Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.ripple:active::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Parallax Layers */
.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-layer-1 {
    transform: translateZ(-100px) scale(1.1);
}

.parallax-layer-2 {
    transform: translateZ(-50px) scale(1.05);
}

.parallax-layer-3 {
    transform: translateZ(0);
}

/* Multi-layer Shadows */
.shadow-layered {
    box-shadow:
        0 2px 4px rgba(93, 64, 55, 0.05),
        0 4px 8px rgba(93, 64, 55, 0.08),
        0 8px 16px rgba(93, 64, 55, 0.1),
        0 16px 32px rgba(93, 64, 55, 0.12);
}

.shadow-layered:hover {
    box-shadow:
        0 4px 8px rgba(93, 64, 55, 0.08),
        0 8px 16px rgba(93, 64, 55, 0.12),
        0 16px 32px rgba(93, 64, 55, 0.16),
        0 32px 64px rgba(93, 64, 55, 0.2);
}

/* Noise Texture Overlay */
.noise-texture {
    position: relative;
}

.noise-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Border Gradient Animation */
.border-gradient-animated {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.border-gradient-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,
            #7D5A50,
            #D4941A,
            #F0B429,
            #D4941A,
            #7D5A50);
    background-size: 300% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: borderGradientShift 3s ease infinite;
}

@keyframes borderGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glowing Accent Elements */
.glow-accent {
    position: relative;
}

.glow-accent::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 148, 26, 0.3), transparent 70%);
    border-radius: inherit;
    animation: breathe 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Staggered Reveal Animation */
.stagger-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-reveal.revealed {
    animation: staggerIn 0.6s ease forwards;
}

.stagger-reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-reveal:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-reveal:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-reveal:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-reveal:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Morphing Shapes */
.morphing-shape {
    animation: morphShape 10s ease-in-out infinite;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Aurora Background Effect */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(45deg,
            rgba(125, 90, 80, 0.05),
            rgba(212, 148, 26, 0.05),
            rgba(161, 136, 127, 0.05));
    background-size: 400% 400%;
    animation: auroraMove 15s ease infinite;
}

@keyframes auroraMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Smooth Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

body {
    animation: pageLoad 0.8s ease-out;
}

/* Custom Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 148, 26, 0.3), transparent);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

/* Hover Scale with Spring Physics */
.spring-scale {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spring-scale:hover {
    transform: scale(1.1);
}

/* Scan Line Effect */
.scanlines {
    position: relative;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    opacity: 0.5;
}

/* Glass Reflection Effect */
.glass-reflection {
    position: relative;
}

.glass-reflection::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    animation: glassReflection 3s ease-in-out infinite;
}

@keyframes glassReflection {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}