/**
 * Visual Myths - Custom Global Styles
 * Optimized for performance and maintainability.
 */

/* Brand Typography */
@font-face {
    font-family: 'Chiller';
    src: local('Chiller'), local('Chiller-Regular');
}

.brand-text {
    font-family: 'Chiller', 'Permanent Marker', cursive !important;
    text-transform: uppercase;
    color: #6fa239;
}

.brand-text .v-letter {
    color: #0033ff !important;
    font-size: 1.7em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.05em;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Footer Enhancements */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #a4a7b1;
    transition: all .3s;
}

.footer-links li a:hover {
    color: #2ec1e1;
    padding-left: 5px;
}

/* Animated Interaction Boxes (Home / Digital Production) */
@keyframes hue-rotate {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes pulse-cyan {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(46, 193, 225, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 0 10px rgba(46, 193, 225, 0);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(46, 193, 225, 0);
    }
}

.item-box-animated {
    padding: 100px 20px;
    border: 1.5px solid;
    border-image: linear-gradient(to right, #2e7ce1, #2ec1e1, #6fa239) 1;
    text-align: center;
    position: relative;
    background: transparent;
    animation: hue-rotate 10s linear infinite;
    transition: all 0.3s ease;
}

.item-box-animated:hover {
    transform: translateY(-10px);
    border-image: linear-gradient(to left, #2e7ce1, #2ec1e1, #6fa239) 1;
}

.dot-pulse {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #2ec1e1;
    border-radius: 50%;
    border: 4px solid #111215;
    animation: pulse-cyan 2s infinite;
    z-index: 10;
}

/* Image Hover Effects (Gallery/Portfolio) */
.item-img {
    overflow: hidden;
    border-radius: 10px;
}

.item-img img {
    transition: transform 0.5s ease;
}

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

/* Force Hide Loader on Legacy Pages */
.about-page .loading, .about-page #preloader,
.services-page .loading, .services-page #preloader,
.contact-page .loading, .contact-page #preloader,
.portfolio-page .loading, .portfolio-page #preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Fix Trailing White Space */
html, body {
    height: auto !important;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Utility Classes */
.mt-80 { margin-top: 80px; }

.mb-80 {
    margin-bottom: 80px;
}

.mr-20 {
    margin-right: 20px;
}