/* ========================================
   ENTERPRISE LEVEL ANIMATIONS & EFFECTS
   ======================================== */

:root {
    /* Дополнительные переменные для анимаций */
    --animation-duration-fast: 0.3s;
    --animation-duration-base: 0.6s;
    --animation-duration-slow: 1s;
    --animation-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-easing-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    
    /* Оптимизированный spacing */
    --section-gap-sm: clamp(2rem, 4vw, 3rem);
    --section-gap-md: clamp(3rem, 6vw, 5rem);
    --section-gap-lg: clamp(4rem, 8vw, 7rem);
    --section-gap-xl: clamp(5rem, 10vw, 9rem);
    
    /* Эффекты */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glow-primary: 0 0 20px rgba(144, 193, 64, 0.3), 0 0 40px rgba(144, 193, 64, 0.2);
    --glow-accent: 0 0 30px rgba(34, 197, 94, 0.4), 0 0 60px rgba(34, 197, 94, 0.2);
}

/* ========================================
   БАЗОВЫЕ АНИМАЦИИ
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(144, 193, 64, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(144, 193, 64, 0.6), 0 0 60px rgba(144, 193, 64, 0.4);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(144, 193, 64, 0.3);
    }
    50% {
        border-color: rgba(144, 193, 64, 0.8);
    }
}

/* ========================================
   SCROLL ANIMATIONS (Intersection Observer)
   ======================================== */

.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--animation-duration-base) var(--animation-easing-smooth),
                transform var(--animation-duration-base) var(--animation-easing-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-fade-up {
    transform: translateY(40px);
}

.animate-fade-up.animated {
    transform: translateY(0);
}

.animate-fade-down {
    transform: translateY(-40px);
}

.animate-fade-down.animated {
    transform: translateY(0);
}

.animate-fade-left {
    transform: translateX(-40px);
}

.animate-fade-left.animated {
    transform: translateX(0);
}

.animate-fade-right {
    transform: translateX(40px);
}

.animate-fade-right.animated {
    transform: translateX(0);
}

.animate-scale {
    transform: scale(0.9);
}

.animate-scale.animated {
    transform: scale(1);
}

.animate-delay-100 {
    transition-delay: 0.1s;
}

.animate-delay-200 {
    transition-delay: 0.2s;
}

.animate-delay-300 {
    transition-delay: 0.3s;
}

.animate-delay-400 {
    transition-delay: 0.4s;
}

.animate-delay-500 {
    transition-delay: 0.5s;
}

/* ========================================
   ОПТИМИЗИРОВАННЫЙ SPACING МЕЖДУ БЛОКАМИ
   ======================================== */

/* Уменьшаем spacing между секциями */
section,
.section,
.about-hero,
.company-info,
.company-timeline,
.mission-section,
.team-section,
.about-cta {
    margin-bottom: var(--section-gap-md) !important;
}

/* Для больших секций */
.hero-section,
.page-header {
    margin-bottom: var(--section-gap-lg) !important;
}

/* Для маленьких блоков */
.info-card,
.team-member,
.timeline-item {
    margin-bottom: var(--section-gap-sm) !important;
}

/* Контейнеры контента */
.page-content,
.content-inner {
    padding-top: var(--section-gap-md) !important;
    padding-bottom: var(--section-gap-md) !important;
}

/* Grid gaps */
.info-grid,
.team-grid,
.mission-grid {
    gap: var(--section-gap-sm) !important;
}

/* ========================================
   GLASSMORPHISM ЭФФЕКТЫ
   ======================================== */

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all var(--animation-duration-base) var(--animation-easing-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   УЛУЧШЕННЫЕ КАРТОЧКИ С АНИМАЦИЯМИ
   ======================================== */

.info-card,
.team-member,
.timeline-content,
.mission-block,
.values-block {
    position: relative;
    overflow: hidden;
    transition: all var(--animation-duration-base) var(--animation-easing-smooth);
    animation: fadeInUp var(--animation-duration-base) var(--animation-easing-smooth);
}

.info-card::before,
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--animation-duration-slow) var(--animation-easing-smooth);
}

.info-card:hover::before,
.team-member:hover::before {
    left: 100%;
}

.info-card:hover,
.team-member:hover,
.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: var(--color-primary);
}

/* ========================================
   ГРАДИЕНТНЫЕ ЭФФЕКТЫ
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.gradient-border {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--animation-duration-base);
}

.gradient-border:hover::before {
    opacity: 1;
}

/* ========================================
   ПАРАЛЛАКС ЭФФЕКТЫ
   ======================================== */

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ========================================
   HOVER ЭФФЕКТЫ ДЛЯ КНОПОК
   ======================================== */

.btn,
.cta-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all var(--animation-duration-base) var(--animation-easing-smooth);
}

.btn::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 var(--animation-duration-base), height var(--animation-duration-base);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
}

.btn-primary:hover {
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
   АНИМАЦИИ ДЛЯ ИКОНОК
   ======================================== */

.info-icon,
.member-photo {
    position: relative;
    transition: all var(--animation-duration-base) var(--animation-easing-bounce);
}

.info-icon:hover {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 2s ease-in-out infinite;
}

.member-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.member-photo img {
    transition: transform var(--animation-duration-slow) var(--animation-easing-smooth);
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

/* ========================================
   TIMELINE АНИМАЦИИ
   ======================================== */

.timeline-item {
    opacity: 0;
    animation: fadeInUp var(--animation-duration-base) var(--animation-easing-smooth) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-year {
    animation: scaleIn var(--animation-duration-base) var(--animation-easing-bounce) forwards;
    animation-delay: 0.3s;
}

.timeline-content {
    transition: all var(--animation-duration-base) var(--animation-easing-smooth);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   HERO СЕКЦИЯ АНИМАЦИИ
   ======================================== */

.about-hero .hero-content {
    animation: fadeInUp var(--animation-duration-slow) var(--animation-easing-smooth);
}

.about-hero .hero-title {
    animation: fadeInDown var(--animation-duration-slow) var(--animation-easing-smooth);
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.about-hero .hero-subtitle {
    animation: fadeInUp var(--animation-duration-slow) var(--animation-easing-smooth);
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.hero-background-image {
    animation: scaleIn var(--animation-duration-slow) var(--animation-easing-smooth);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

.click-effect {
    position: relative;
}

.click-effect:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    :root {
        --section-gap-sm: clamp(1.5rem, 3vw, 2rem);
        --section-gap-md: clamp(2rem, 4vw, 3rem);
        --section-gap-lg: clamp(2.5rem, 5vw, 4rem);
    }
    
    .animate-fade-up,
    .animate-fade-down,
    .animate-fade-left,
    .animate-fade-right {
        transform: none;
    }
}


/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ENTERPRISE ЭФФЕКТЫ
   ======================================== */

/* Floating particles effect */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }

/* Magnetic hover effect */
.magnetic-hover {
    transition: transform var(--animation-duration-fast) var(--animation-easing-smooth);
}

/* 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;
}

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

/* Glow on focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(144, 193, 64, 0.3);
    animation: borderGlow 2s ease-in-out infinite;
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    animation: fadeInUp var(--animation-duration-base) var(--animation-easing-smooth) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }


/* ========================================
   ЗАМЕТНЫЕ ВИЗУАЛЬНЫЕ ЭФФЕКТЫ
   ======================================== */

/* Улучшенные карточки с заметными эффектами */
.info-card,
.team-member,
.timeline-content,
.mission-block,
.values-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border: 2px solid rgba(144, 193, 64, 0.2);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(144, 193, 64, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover,
.team-member:hover,
.timeline-content:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--color-primary);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(144, 193, 64, 0.1),
        0 0 30px rgba(144, 193, 64, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Заметные иконки */
.info-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 
        0 8px 16px rgba(144, 193, 64, 0.3),
        0 0 0 4px rgba(144, 193, 64, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-card:hover .info-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 12px 24px rgba(144, 193, 64, 0.4),
        0 0 0 6px rgba(144, 193, 64, 0.15),
        0 0 40px rgba(144, 193, 64, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Заметные кнопки */
.btn,
.cta-buttons .btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 
        0 4px 12px rgba(144, 193, 64, 0.3),
        0 0 0 2px rgba(144, 193, 64, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(144, 193, 64, 0.4),
        0 0 0 4px rgba(144, 193, 64, 0.2),
        0 0 30px rgba(144, 193, 64, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-primary:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Hero секция - заметные эффекты */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(144, 193, 64, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(144, 193, 64, 0.9) 0%, rgba(34, 197, 94, 0.85) 100%);
    backdrop-filter: blur(2px);
}

/* Timeline - заметные эффекты */
.timeline::before {
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    background-size: 100% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 10px rgba(144, 193, 64, 0.5);
}

.timeline-year {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 
        0 8px 16px rgba(144, 193, 64, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(144, 193, 64, 0.6);
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-item:hover .timeline-year {
    transform: scale(1.1);
    box-shadow: 
        0 12px 24px rgba(144, 193, 64, 0.5),
        0 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(144, 193, 64, 0.8);
}

/* Фото команды - заметные эффекты */
.member-photo {
    border: 4px solid rgba(144, 193, 64, 0.3);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(144, 193, 64, 0.1),
        inset 0 0 20px rgba(144, 193, 64, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover .member-photo {
    border-color: var(--color-primary);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 0 0 6px rgba(144, 193, 64, 0.2),
        0 0 40px rgba(144, 193, 64, 0.4),
        inset 0 0 30px rgba(144, 193, 64, 0.15);
    transform: scale(1.05);
}

/* CTA секция - заметные эффекты */
.about-cta {
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.about-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(144, 193, 64, 0.95) 0%, rgba(34, 197, 94, 0.9) 100%);
    z-index: 0;
}

.about-cta h2,
.about-cta p,
.about-cta .cta-buttons {
    position: relative;
    z-index: 1;
}

