/* ============================================
   KCR Design Studio - Premium Animations & Effects
   Advanced visual enhancements and modern interactions
   ============================================ */

/* === ENHANCED COLOR PALETTE === */
:root {
    /* Refined Premium Colors */
    --color-rich-black: #0a0a0a;
    --color-charcoal-deep: #141414;
    --color-slate: #1e1e1e;
    --color-graphite: #2a2a2a;
    --color-warm-grey: #3a3a3a;

    /* Luxury Gold Spectrum */
    --color-gold-bright: #f4d03f;
    --color-gold-rich: #d4af37;
    --color-gold-deep: #b8941f;
    --color-bronze: #cd7f32;

    /* Accent Colors */
    --color-copper: #b87333;
    --color-champagne: #f7e7ce;
    --color-cream: #fffdd0;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8941f 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1e1e1e 50%, #2a2a2a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 30, 30, 0.85) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Enhanced Shadows */
    --shadow-glow-gold: 0 0 40px rgba(244, 208, 63, 0.3);
    --shadow-glow-gold-intense: 0 0 60px rgba(244, 208, 63, 0.5);
    --shadow-depth-1: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-depth-2: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-depth-3: 0 15px 50px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0 2px 10px rgba(0, 0, 0, 0.3);

    /* Animation Timings */
    --timing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --timing-elastic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === GLASSMORPHISM EFFECTS === */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--timing-elastic);
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(244, 208, 63, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 208, 63, 0.2);
    transform: translateY(-8px);
}

/* === GRADIENT TEXT EFFECTS === */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* === ENHANCED BUTTON EFFECTS === */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: var(--gradient-gold);
    border: none;
    box-shadow: 0 4px 20px rgba(244, 208, 63, 0.4);
    transition: all 0.4s var(--timing-elastic);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(244, 208, 63, 0.6), var(--shadow-glow-gold);
}

.btn-premium:active {
    transform: translateY(-2px) scale(0.98);
}

/* Magnetic Button Effect */
.btn-magnetic {
    transition: transform 0.3s var(--timing-elastic);
}

/* === CARD TILT EFFECT === */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--timing-elastic);
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

.card-tilt-content {
    transform: translateZ(30px);
}

/* === PARALLAX EFFECTS === */
.parallax-layer {
    transition: transform 0.3s ease-out;
}

/* === REVEAL ANIMATIONS === */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes revealRotate {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.reveal-up {
    animation: revealUp 0.8s var(--timing-elastic) forwards;
}

.reveal-scale {
    animation: revealScale 0.8s var(--timing-elastic) forwards;
}

.reveal-rotate {
    animation: revealRotate 0.8s var(--timing-elastic) forwards;
}

/* Stagger delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* === ENHANCED HERO SECTION === */
.hero-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.5;
    }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold-bright);
    border-radius: 50%;
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }

    90% {
        opacity: 0.3;
    }
}

/* === ENHANCED NAVIGATION === */
.nav-enhanced {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 208, 63, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link-enhanced {
    position: relative;
    transition: all 0.3s var(--timing-smooth);
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
    transition: width 0.3s var(--timing-elastic);
}

.nav-link-enhanced:hover::before,
.nav-link-enhanced.active::before {
    width: 100%;
}

.nav-link-enhanced:hover {
    color: var(--color-gold-bright);
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.5);
}

/* === IMAGE EFFECTS === */
.image-zoom {
    overflow: hidden;
    border-radius: 16px;
}

.image-zoom img {
    transition: transform 0.6s var(--timing-elastic);
}

.image-zoom:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.2) 0%, rgba(184, 148, 31, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* === LOADING ANIMATIONS === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 208, 63, 0.2);
    border-top-color: var(--color-gold-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transform-origin: left;
    box-shadow: var(--shadow-glow-gold);
}

/* === ENHANCED SHADOWS === */
.shadow-glow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--shadow-glow-gold);
}

.shadow-depth {
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.4);
}

/* === ANIMATED UNDERLINES === */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--timing-elastic);
}

.underline-animated:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === RIPPLE EFFECT === */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* === SMOOTH SCROLL BEHAVIOR === */
html {
    scroll-behavior: smooth;
}

/* === CUSTOM CURSOR (Optional) === */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-gold-bright);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-gold-bright);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease;
    mix-blend-mode: difference;
}

/* === SECTION DIVIDERS === */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(244, 208, 63, 0.5) 50%, transparent 100%);
    margin: 4rem 0;
}

/* === ENHANCED PROCESS STEPS === */
.process-step-enhanced {
    position: relative;
    transition: all 0.5s var(--timing-elastic);
}

.process-step-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.process-step-enhanced:hover::before {
    opacity: 1;
}

/* === COUNTER ANIMATION === */
.counter {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .card-tilt:hover {
        transform: none;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}