/* ==============================================
   СТИЛИ ГЛАВНОЙ СТРАНИЦЫ
   ============================================== */

.main-content {
    flex: 1;
    padding: 60px 0;
}

/* Hero секция */
.hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-greeting {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7em;
    font-weight: 400;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Декоративные элементы */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: var(--secondary-gradient);
}

.floating-card:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    background: var(--accent-gradient);
}

/* Сетка карточек разделов */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Карточки разделов */
.section-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-card[data-section="games"]::before {
    background: var(--primary-gradient);
}

.section-card[data-section="work"]::before {
    background: var(--secondary-gradient);
}

.section-card[data-section="other"]::before {
    background: var(--accent-gradient);
}

.section-card:hover::before {
    transform: scaleX(1);
}

.section-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-card:hover .card-background {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--primary-gradient);
    transition: transform 0.3s ease;
}

.section-card[data-section="games"] .card-icon {
    background: var(--primary-gradient);
}

.section-card[data-section="work"] .card-icon {
    background: var(--secondary-gradient);
}

.section-card[data-section="other"] .card-icon {
    background: var(--accent-gradient);
}

.section-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-status {
    margin-bottom: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.wip {
    background: var(--warning-gradient);
    color: white;
}

.card-subdomain {
    margin-bottom: 15px;
}

.subdomain-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.section-card:hover .subdomain-badge {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.section-card:hover .tag {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.card-arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.section-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

/* Футер */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-card {
        padding: 25px;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}