/* ========================================
   ENHANCED PREMIUM VISUAL EFFECTS
   Additional animations and effects for premium look
   ======================================== */

/* Smooth Page Load Animation */
body {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced Card Hover Effects */
.card,
.feature-box,
.premium-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after,
.feature-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(201, 162, 77, 0.05), transparent);
    transition: height 0.4s ease;
    z-index: -1;
}

.card:hover::after,
.feature-box:hover::after {
    height: 100%;
}

/* Glowing Border Effect */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold), var(--primary), var(--gold));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glow-on-hover:hover::before {
    opacity: 0.3;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Floating Animation for Icons */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect for Headings */
.shimmer-text {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.6) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    font-weight: 700;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Pulse Effect for Important Elements */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Rotate In Animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.6s ease-out;
}

.rotate-in.revealed {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Enhanced Icon Box with Gradient Background */
.icon-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 162, 77, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.card:hover .icon-box::before,
.feature-box:hover .icon-box::before {
    width: 100%;
    height: 100%;
}

.card:hover .icon-box,
.feature-box:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(201, 162, 77, 0.3);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Underline Animation */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    background: var(--gold);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.underline-animation:hover::after,
.underline-animation.active::after {
    width: 100%;
}

/* Image Zoom on Hover */
.image-zoom-container {
    overflow: hidden;
    border-radius: 8px;
}

.image-zoom-container img {
    transition: transform 0.6s ease;
}

.image-zoom-container:hover img {
    transform: scale(1.1);
}

/* Parallax Scroll Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Backdrop Blur Effect */
.backdrop-blur {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Button Glow */
.btn-glow {
    box-shadow: 0 0 20px rgba(201, 162, 77, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(201, 162, 77, 0.6);
}

/* Staggered Grid Animation */
.grid>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.grid.revealed>*:nth-child(1) {
    transition-delay: 0.1s;
}

.grid.revealed>*:nth-child(2) {
    transition-delay: 0.2s;
}

.grid.revealed>*:nth-child(3) {
    transition-delay: 0.3s;
}

.grid.revealed>*:nth-child(4) {
    transition-delay: 0.4s;
}

.grid.revealed>*:nth-child(5) {
    transition-delay: 0.5s;
}

.grid.revealed>*:nth-child(6) {
    transition-delay: 0.6s;
}

.grid.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip Effect */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    background-color: var(--primary);
    color: var(--gold);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Ribbon Effect */
.ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: var(--gold);
    color: var(--primary);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.ribbon::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid var(--gold);
    border-bottom: 5px solid transparent;
    filter: brightness(0.8);
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageTransition 0.5s ease-out;
}

@keyframes pageTransition {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}