/* ====== CASE FARM PRO THEME ====== */

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f0f19 0%, #14141e 50%, #0a0a12 100%);
    color: #f2f2f2;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====== NAVBAR ====== */
.navbar {
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(15, 15, 25, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 100px;           /* Размер изображения */
    height: 50px;
    object-fit: contain;   /* Сохраняет пропорции */
    border-radius: 8px;
    /* Градиентная рамка (опционально) */
    border: 2px solid transparent;
    /* background:  */
        /* linear-gradient(135deg, #5865F2, #EB459E) border-box, */
        /* linear-gradient(135deg, #5865F2, #EB459E) padding-box; */
}

.logo-text {
    background: linear-gradient(135deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    gap: 2rem;
}

.nav-tab {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab:hover {
    color: #ffffff;
    background: rgba(88, 101, 242, 0.1);
}

.nav-tab.active {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.15);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #5865F2;
    border-radius: 2px;
}

.btn-login {
    background: rgba(88, 101, 242, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.5);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.btn-login:hover {
    background: rgba(88, 101, 242, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.4);
}

/* ====== MAIN CONTENT ====== */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* ====== HERO SECTION ====== */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.1) 0%, 
        rgba(235, 69, 158, 0.05) 50%, 
        rgba(15, 15, 25, 0.8) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-section.blurred {
    filter: blur(8px);
    opacity: 0.7;
    transform: scale(0.98);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b9bbbe;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ====== CASES SECTION ====== */
.cases-section {
    position: relative;
    z-index: 2;
    margin-top: -100px;
    padding-top: 150px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
}

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

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
}

.case-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #5865F2, #EB459E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.case-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.case-description {
    color: #b9bbbe;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ====== STATS SECTION ====== */
.stats-section {
    background: rgba(15, 15, 25, 0.6);
    padding: 4rem 2rem;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b9bbbe;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ====== FOOTER ====== */
.footer {
    background: rgba(10, 10, 18, 0.95);
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center; /* Изменено с column на center */
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Увеличил отступ */
    font-weight: 600;
}

.footer-logo-img {
    width: 60px; /* Чуть меньше чем в навбаре */
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    /* border: 1px solid rgba(88, 101, 242, 0.3); */
}

.footer-logo-text {
    background: linear-gradient(135deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b9bbbe;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5865F2;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logo-img {
        width: 30px;
        height: 30px;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-4px) scale(1.01);
    }
    75% {
        transform: translateY(-6px) scale(1.015);
    }
}

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

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Дополнительные плавные анимации */
@keyframes smoothAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

.smooth-appear {
    animation: smoothAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.gentle-pulse {
    animation: gentlePulse 3s ease-in-out infinite;
}

/* Плавные переходы для интерактивных элементов */
.case-card,
.stat-item,
.nav-tab,
.btn-login {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Плавное появление при скролле */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-tabs {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}