/* ========================================
   ENTERPRISE DESIGN SYSTEM
   Комплексная система компонентов
   ======================================== */

:root {
    /* Enterprise Color Palette */
    --enterprise-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --enterprise-accent: #10b981;
    --enterprise-dark: #0f172a;
    --enterprise-card-bg: rgba(255, 255, 255, 0.05);
    
    /* Glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-bg-medium: rgba(255, 255, 255, 0.2);
    --glass-bg-heavy: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(20px);
    
    /* 3D Effects */
    --transform-3d-perspective: 1000px;
    --transform-3d-depth: 50px;
}

/* ========================================
   GLASSMORPHISM COMPONENTS
   ======================================== */

.glass-card {
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-panel {
    background: var(--glass-bg-light);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========================================
   3D CARD EFFECTS
   ======================================== */

.card-3d {
    perspective: var(--transform-3d-perspective);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(-5deg);
}

.card-3d-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover .card-3d-inner {
    transform: translateZ(var(--transform-3d-depth));
}

/* Применение к существующим карточкам */
.info-card,
.team-member,
.product-card {
    perspective: var(--transform-3d-perspective);
    transform-style: preserve-3d;
}

.info-card:hover,
.team-member:hover,
.product-card:hover {
    transform: translateY(-15px) rotateX(2deg) rotateY(-2deg) scale(1.03);
}

/* ========================================
   ANIMATED COUNTERS
   ======================================== */

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
}

.counter-number {
    font-family: var(--font-premium-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counter-number.animated {
    opacity: 1;
    transform: translateY(0);
}

.counter-label {
    font-family: var(--font-premium-body);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.counter-suffix {
    font-size: 0.6em;
    vertical-align: super;
}

/* ========================================
   STICKY HEADER WITH SCROLL PROGRESS
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(144, 193, 64, 0.5);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

/* ========================================
   FLOATING CTA BUTTON
   ======================================== */

.floating-cta {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 
        0 8px 24px rgba(144, 193, 64, 0.4),
        0 0 0 4px rgba(144, 193, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0);
}

.floating-cta.visible {
    opacity: 1;
    transform: scale(1);
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 32px rgba(144, 193, 64, 0.5),
        0 0 0 6px rgba(144, 193, 64, 0.15);
}

.floating-cta svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ========================================
   SKELETON SCREENS
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 300px;
    margin-bottom: var(--space-6);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-2);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
}

/* ========================================
   GRADIENT OVERLAYS ON IMAGES
   ======================================== */

.image-overlay-gradient {
    position: relative;
    overflow: hidden;
}

.image-overlay-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-overlay-gradient:hover::after {
    opacity: 1;
}

/* ========================================
   TRUST INDICATORS
   ======================================== */

.trust-section {
    background: linear-gradient(135deg, rgba(144, 193, 64, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    padding: var(--section-gap-lg) 0;
}

.certificates-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.certificate-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(144, 193, 64, 0.1);
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: var(--color-primary);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

/* ========================================
   STATS DASHBOARD
   ======================================== */

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    padding: var(--space-8);
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SMOOTH PARALLAX
   ======================================== */

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

.parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.parallax-content {
    position: relative;
    z-index: 1;
}

/* ========================================
   MEGA MENU STYLE
   ======================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

/* ========================================
   RIPPLE EFFECT
   ======================================== */

.ripple-button {
    position: relative;
    overflow: hidden;
}

.ripple-button::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-button:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   PROGRESS INDICATORS
   ======================================== */

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-8) 0;
}

.progress-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step.completed::before {
    background: var(--color-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.progress-step.active .step-number {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

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

@media (max-width: 768px) {
    .floating-cta {
        width: 50px;
        height: 50px;
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .mega-menu {
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    .stats-dashboard {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   ENTERPRISE COLOR SYSTEM
   ======================================== */

:root {
    /* Нова enterprise палітра */
    --enterprise-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --enterprise-accent: #10b981;
    --enterprise-dark: #0f172a;
    --enterprise-light: #f8fafc;
    
    /* Агро-тема зелений (зберігаємо) */
    --agro-primary: #90C140;
    --agro-accent: #22C55E;
    --agro-dark: #2c5f2d;
    
    /* Комбінована палітра */
    --primary-gradient: linear-gradient(135deg, var(--agro-primary) 0%, var(--agro-accent) 50%, var(--enterprise-accent) 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    --overlay-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

/* Застосування нової палітри */
.hero-section,
.page-header,
.about-hero {
    background: transparent !important; /* Убираем зеленый градиент, используем изображение с overlay */
}

/* КРИТИЧНО: Белый цвет текста для hero блока на странице "Про компанію" */
/* Используем максимально специфичные селекторы для переопределения градиентного текста */
/* Этот файл загружается ПОСЛЕДНИМ, поэтому эти правила переопределят все предыдущие */
.page-content .about-hero .hero-title,
.content-inner .about-hero .hero-title,
.ast-article-single .about-hero .hero-title,
.page-content .content-inner .about-hero .hero-title,
.ast-article-single .page-content .about-hero .hero-title,
.about-hero .hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Переопределяем градиентный текст */
    background-clip: border-box !important; /* Убираем background-clip: text */
    -webkit-background-clip: border-box !important;
    background: none !important; /* Убираем градиентный фон */
    background-image: none !important;
    background-size: unset !important;
    animation: none !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.page-content .about-hero .hero-subtitle,
.content-inner .about-hero .hero-subtitle,
.ast-article-single .about-hero .hero-subtitle,
.page-content .content-inner .about-hero .hero-subtitle,
.ast-article-single .page-content .about-hero .hero-subtitle,
.about-hero .hero-subtitle {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    background: none !important;
    background-image: none !important;
    background-size: unset !important;
    animation: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.info-card,
.team-member,
.timeline-content {
    background: var(--card-gradient) !important;
}

/* Градієнтні тексти */
.gradient-text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-enterprise {
    background: var(--enterprise-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

