/* ============================================
   AZOTH INDUSTRIES - ANIMATION STYLESHEET
   ============================================ */

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black-primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    width: 0%;
    transition: width 0.3s ease;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--gold-primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 15px, 0); }
    20% { clip: rect(85px, 9999px, 95px, 0); }
    40% { clip: rect(10px, 9999px, 65px, 0); }
    60% { clip: rect(75px, 9999px, 25px, 0); }
    80% { clip: rect(50px, 9999px, 80px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    20% { clip: rect(25px, 9999px, 50px, 0); }
    40% { clip: rect(90px, 9999px, 75px, 0); }
    60% { clip: rect(15px, 9999px, 35px, 0); }
    80% { clip: rect(55px, 9999px, 20px, 0); }
    100% { clip: rect(40px, 9999px, 85px, 0); }
}

/* Reveal Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
    opacity: 1;
    transform: translate(0);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 3D Tilt Card */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Printer Head Animation */
.printer-head {
    animation: printMove 4s ease-in-out infinite;
}

@keyframes printMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(5px); }
    75% { transform: translateX(15px) translateY(-5px); }
}

/* Navigation Link Hover */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Portfolio Item Hover */
.portfolio-item {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

/* Filter Button Active State */
.filter-btn.active {
    background: var(--gold-primary);
    color: var(--black-primary);
    border-color: var(--gold-primary);
}

/* Form Input Focus Animation */
input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Scroll Reveal Initial States */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Hexagon Shape */
.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.hexagon:hover {
    transform: scale(1.1);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Button Shine Effect */
.group:hover .absolute inset-0 {
    animation: buttonShine 0.6s ease;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}