/* Стили для главной страницы */

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 550px;
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

/* Project Summary */
.project-summary {
    padding: 5rem 0;
}

.summary-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.summary-text {
    flex: 3;
}

.summary-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.summary-stats {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Tech Stack */
.tech-stack {
    padding: 5rem 0;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.tech-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: grayscale(30%);
    transition: all var(--transition-normal);
}

.tech-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

/* Latest Updates */
.latest-updates {
    padding: 5rem 0;
}

.updates-grid {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.update-card {
    display: flex;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.update-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    min-width: 100px;
    text-align: center;
}

.update-date .day {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.update-date .month,
.update-date .year {
    font-size: 0.875rem;
    text-transform: uppercase;
}

.update-content {
    padding: 2rem;
    flex: 1;
}

.update-content h3 {
    margin-bottom: 0.75rem;
}

.update-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.view-all-updates {
    margin-top: 3rem;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-light.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn.primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn.primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column-reverse;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .summary-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .summary-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .update-card {
        flex-direction: column;
    }
    
    .update-date {
        flex-direction: row;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .update-date .day, 
    .update-date .month, 
    .update-date .year {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .tech-grid {
        gap: 2rem;
    }
    
    .tech-item {
        width: 90px;
    }
    
    .tech-item img {
        width: 50px;
        height: 50px;
    }
}