/* EventGear Landing Page Styles */

/* Hero Section Fixes */
.hero-section .container {
    position: relative;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

/* Мобильная адаптация */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }
    
    .hero-section .container {
        min-height: auto !important;
    }
    
    /* Отступы для nav-pills на мобильных */
    .nav-pills .nav-link {
        margin: 0.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
    
    /* Убираем лишние отступы между секциями */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-visual {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Equipment Cards */
.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.equipment-image {
    transition: all 0.3s ease;
}

.equipment-card:hover .equipment-image {
    transform: scale(1.05);
}

/* Step Cards */
.step-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #059669;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.step-icon {
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #059669;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.benefit-icon {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #059669;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.testimonial-avatar {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #059669;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Buttons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

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

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Tabs */
.nav-pills .nav-link {
    background-color: transparent;
    border: 2px solid #334155;
    color: #94A3B8;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: #059669;
    border-color: #059669;
    color: #F1F5F9;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(5, 150, 105, 0.1);
    border-color: #059669;
    color: #F1F5F9;
}

/* Убираем подчеркивание для nav-pills */
.nav-pills .nav-link::after {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(71, 85, 105, 0.3) 50%, transparent 100%);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .equipment-card {
        margin-bottom: 1rem;
    }
    
    .step-card,
    .benefit-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Мобильное меню */
@media (max-width: 991px) {
    .navbar-collapse .navbar-nav {
        align-items: flex-start !important;
    }
    
    .navbar-nav .nav-link.fw-bold {
        padding: 0.5rem 0;
        border: none !important;
        color: #F1F5F9 !important;
    }
    
    .navbar-nav .nav-link.fw-bold:hover {
        color: #059669 !important;
    }
    
    /* Кнопка "Войти" справа */
    .navbar-nav .btn-outline-light {
        margin-left: auto;
        display: block;
        width: fit-content;
    }
}

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

/* Focus States */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #059669;
        border: 2px solid #F1F5F9;
    }
    
    .text-muted {
        color: #E2E8F0 !important;
    }
}
