/* ===== PREMIUM EFFECTS & MICRO-ANIMATIONS ===== */

/* ===== PREMIUM BACKGROUND ANIMATIONS ===== */





/* Advanced ambient light orbs with geometric patterns */
.products::before,
.advantages::before,
.about::before,
.cases::before,
.contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(circle at 30% 30%, rgba(205, 181, 57, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(240, 225, 145, 0.08) 0%, transparent 50%),
        conic-gradient(from 45deg, transparent, rgba(205, 181, 57, 0.06), transparent),
        linear-gradient(45deg, transparent 48%, rgba(205, 181, 57, 0.04) 50%, transparent 52%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: ambientFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Дополнительные блики в секциях */
.products::after,
.advantages::after,
.about::after,
.cases::after,
.contact::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 100px;
    background:
        linear-gradient(45deg,
            transparent,
            rgba(240, 225, 145, 0.15) 20%,
            rgba(205, 181, 57, 0.1) 50%,
            rgba(240, 225, 145, 0.08) 80%,
            transparent);
    top: 20%;
    left: 10%;
    transform: rotate(-15deg);
    animation: blikFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.advantages::before {
    left: -250px;
    right: auto;
    animation-delay: -5s;
}

.advantages::after {
    top: 60%;
    left: auto;
    right: 15%;
    animation-delay: -4s;
}

.cases::before {
    top: auto;
    bottom: -250px;
    animation-delay: -10s;
}

.cases::after {
    top: auto;
    bottom: 30%;
    left: auto;
    right: 20%;
    animation-delay: -8s;
}

.about::after {
    top: 40%;
    left: auto;
    right: 5%;
    animation-delay: -6s;
}

.contact::after {
    top: 70%;
    left: 5%;
    animation-delay: -2s;
}

@keyframes ambientFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }

    33% {
        transform: translate(-20px, -15px) scale(1.05) rotate(120deg);
        opacity: 0.6;
    }

    66% {
        transform: translate(15px, -25px) scale(0.95) rotate(240deg);
        opacity: 0.8;
    }
}

@keyframes blikFloat {

    0%,
    100% {
        transform: rotate(-15deg) translate(0, 0) scale(1);
        opacity: 0.3;
        filter: blur(1px);
    }

    25% {
        transform: rotate(-10deg) translate(10px, -5px) scale(1.1);
        opacity: 0.6;
        filter: blur(0.5px);
    }

    50% {
        transform: rotate(-20deg) translate(-5px, 10px) scale(0.9);
        opacity: 0.4;
        filter: blur(1.5px);
    }

    75% {
        transform: rotate(-12deg) translate(8px, -8px) scale(1.05);
        opacity: 0.7;
        filter: blur(0.8px);
    }
}

/* Enhanced Loading Screen */
#loading-screen {
    background: linear-gradient(135deg, #0f1b24 0%, #1a2a3a 50%, #0f1b24 100%);
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(205, 181, 57, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(205, 181, 57, 0.08) 0%, transparent 50%);
    animation: loadingAmbient 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes loadingAmbient {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.loading-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Premium Button Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Final stable effect for header buttons - using scale instead of translate */
.nav-actions .btn {
    position: relative;
    overflow: hidden;
}

.nav-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.nav-actions .btn:hover::before {
    transform: scaleX(1);
}

.nav-actions .btn::after {
    display: none;
}

/* Ultra-stable effect for header buttons */
.nav-actions .btn {
    position: relative;
    overflow: hidden;
}

.nav-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.nav-actions .btn:hover::before {
    transform: translateX(100%);
}

.nav-actions .btn::after {
    display: none;
}

/* Final stable effect for header buttons - using scale instead of translate */
.nav-actions .btn {
    position: relative;
    overflow: hidden;
}

.nav-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.nav-actions .btn:hover::before {
    transform: scaleX(1);
}

.nav-actions .btn::after {
    display: none;
}

/* Enhanced Card Hover Effects */
.product-card,
.advantage-card,
.case-card {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.product-card:hover,
.advantage-card:hover,
.case-card:hover {
    will-change: auto;
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(205, 181, 57, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Text Effects */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

/* Enhanced Form Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.9), rgba(26, 42, 58, 0.7));
}

/* Premium Navigation Effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 181, 57, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Enhanced Logo Effects */
.logo-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo:hover .logo-image {
    transform: scale(1.05) rotate(2deg);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Enhanced Selection */
::selection {
    background: rgba(205, 181, 57, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(205, 181, 57, 0.3);
    color: var(--text-primary);
}

/* Premium Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced Mobile Menu */
.nav-menu.active {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Premium Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: var(--shadow-lg);
}

/* Enhanced Modal Backdrop */
.modal {
    backdrop-filter: blur(5px);
}

/* Premium Typography */
.hero-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Particle Effects */
.hero-particles::before {
    animation: particles 25s linear infinite, particleGlow 8s ease-in-out infinite alternate, particleFloat 12s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-5px);
    }

    75% {
        transform: translateY(-30px) translateX(15px);
    }
}

/* Premium Card Stagger Animation */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced Contact Form */
.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(205, 181, 57, 0.02), transparent);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

/* Premium Footer Effects */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

/* Enhanced Social Links */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

/* Premium Tag Effects */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.tag:hover::before {
    left: 100%;
}

/* Enhanced Checkbox */
.checkbox-label input[type="checkbox"]:checked+.checkmark {
    animation: checkmarkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Premium Image Effects */
.case-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img {
    transform: scale(1.08) rotate(1deg);
}

/* Enhanced Stat Numbers */
.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(205, 181, 57, 0.5);
}

/* Premium Section Transitions */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

section:hover::before {
    opacity: 0.3;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    /* Отключаем parallax эффекты на мобильных */
    .hero-visual {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    .btn {
        min-height: 48px;
    }

    .product-card,
    .advantage-card,
    .case-card {
        transform: none !important;
    }

    .product-card:hover,
    .advantage-card:hover,
    .case-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* Premium Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Premium Footer Dropdown Effects */
.footer-dropdown-toggle {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.footer-dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 181, 57, 0.12), transparent);
    transition: left 0.4s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 3px;
}

.footer-dropdown-toggle:hover::before {
    left: 100%;
}

.footer-dropdown {
    position: relative;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.015);
    margin: 0.25rem 0;
    padding: 0.125rem 0;
}

.footer-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.footer-dropdown.active::before {
    opacity: 0.4;
}

.footer-column a {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin: 0 0.125rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.footer-column a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 181, 57, 0.08), transparent);
    transition: left 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 3px;
}

.footer-column a:hover::before {
    left: 100%;
}

/* Enhanced Footer Dropdown Animation */
.footer-dropdown {
    transform: translateY(-4px) scale(0.99);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.footer-dropdown.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ===== PREMIUM INTERACTIVE EFFECTS ===== */

/* Cursor trail effect */
.hero,
.products,
.advantages,
.about,
.cases,
.contact {
    position: relative;
    overflow: hidden;
}

/* Mouse-following light effect */
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(205, 181, 57, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Subtle parallax scrolling effect */
.hero-visual {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* Premium scroll indicator - создается через JavaScript */


/* Breathing animation for key elements */
.logo-img,
.hero-logo .logo-image {
    animation: gentleBreath 4s ease-in-out infinite;
}

@keyframes gentleBreath {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(205, 181, 57, 0.3));
    }

    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 20px rgba(205, 181, 57, 0.5));
    }
}

/* Elegant text shimmer */
.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(205, 181, 57, 0.4),
            transparent);
    animation: textShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes textShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Sophisticated glow pulse */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(205, 181, 57, 0.6),
            rgba(240, 225, 145, 0.4),
            rgba(205, 181, 57, 0.6));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.btn-primary:hover::before {
    opacity: 1;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        filter: blur(2px);
    }

    100% {
        opacity: 0.8;
        filter: blur(4px);
    }
}

/* Footer Contact Items Enhancement */
.footer-contact .contact-item {
    position: relative;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-contact .contact-item:hover {
    background: rgba(205, 181, 57, 0.05);
    transform: translateX(4px);
}

.footer-contact .contact-item i {
    transition: all 0.3s ease;
}

.footer-contact .contact-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Premium Print Styles */
@media print {

    .hero-bg,
    .hero-particles,
    .hero-gradient {
        display: none;
    }

    .section-title {
        color: var(--primary) !important;
        -webkit-text-fill-color: var(--primary) !important;
    }
}