/* ByDex Custom Styles - Modern Landing Page */

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes card-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes orbit-1 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbit-2 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbit-3 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbit-4 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(10px, -20px) scale(1.2); opacity: 0.6; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-card-float {
    animation: card-float 4s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-orbit-1 {
    animation: orbit-1 20s linear infinite;
}

.animate-orbit-2 {
    animation: orbit-2 25s linear infinite;
}

.animate-orbit-3 {
    animation: orbit-3 30s linear infinite;
}

.animate-orbit-4 {
    animation: orbit-4 35s linear infinite;
}

.animate-particle-float {
    animation: particle-float 4s ease-in-out infinite;
}

.animate-shine {
    animation: shine 3s linear infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Custom Header */
.bydex-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s;
}

.bydex-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.bydex-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 50%, #FBCFE8 100%);
}

.bydex-hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 40px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), transparent);
    filter: blur(80px);
}

.bydex-hero::after {
    content: '';
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), transparent);
    filter: blur(80px);
}

/* Card Styles */
.bydex-card {
    position: relative;
    width: 420px;
    height: 260px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f2937, #111827, #000);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.5);
    overflow: hidden;
}

.bydex-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 3s linear infinite;
}

/* Feature Cards */
.bydex-feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.bydex-feature-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Buttons */
.bydex-btn-primary {
    background: linear-gradient(135deg, #FBBF24, #F59E0B, #F97316);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 32px;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bydex-btn-primary:hover {
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.4);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.bydex-btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 32px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bydex-btn-secondary:hover {
    background: white;
    color: #1f2937;
    text-decoration: none;
}

/* Скрываем стандартное меню WordPress на главной странице */
body.page-template-page-templates-homepage-bydex-php #masthead,
body.page-template-page-templates-homepage-bydex-php .site-header,
body.page-template-page-templates-homepage-bydex-php #hamburger-menu,
body.page-template-page-templates-homepage-bydex-php .open-nav-btn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bydex-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .bydex-card {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }
    
    h1.bydex-hero-title {
        font-size: 36px !important;
    }
}

