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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6366f1;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    width: 28px;
    height: 28px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #6366f1;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #6366f1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6366f1;
    color: white;
}

.btn-secondary:hover {
    background: #4f46e5;
}

/* Секции */
.about-preview,
.projects-preview,
.skills {
    padding: 60px 0;
}

.about-preview {
    background: white;
    text-align: center;
}

.about-preview h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.about-preview p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.project-icon i {
    width: 40px;
    height: 40px;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
}

.tech {
    display: inline-block;
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 500;
}

.center {
    text-align: center;
    margin-top: 2rem;
}

/* Навыки */
.skills {
    background: white;
}

.skills h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s;
}

.skill-item:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.05);
}

.skill-item i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.skill-item:hover i {
    color: white;
}

/* Страницы */
.page-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Страница "Обо мне" */
.about-content {
    padding: 60px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card i {
    width: 40px;
    height: 40px;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Таймлайн */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon i {
    width: 30px;
    height: 30px;
    color: white;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.timeline-content p {
    color: #666;
}

/* Галерея */
.gallery-content {
    padding: 60px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-icon {
    width: 80px;
    height: 80px;
    color: white;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.gallery-info p {
    color: #666;
    margin-bottom: 1rem;
}

.gallery-tag {
    display: inline-block;
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 500;
}

/* Учебные проекты */
.projects-content {
    padding: 60px 0;
    background: white;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card-full {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-header i {
    width: 40px;
    height: 40px;
    color: #6366f1;
}

.project-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: 0.4rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 500;
}

.project-features h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

/* Контакты */
.contacts-content {
    padding: 60px 0;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #1f2937;
}

.contact-details p {
    color: #666;
}

/* Форма */
.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.form-group textarea {
    resize: vertical;
}

/* Социальные сети */
.social-links {
    text-align: center;
}

.social-links h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s;
    min-width: 120px;
}

.social-item:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-5px);
}

.social-item i {
    width: 32px;
    height: 32px;
}

/* Футер */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo i {
    width: 24px;
    height: 24px;
    color: #8b5cf6;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
}
