/* styles.css - Общие стили для всего сайта */

:root {
    --primary: #6e48aa;
    --primary-dark: #4b2e83;
    --primary-light: #9d65c9;
    --secondary: #00c9a7;
    --dark: #1e1e2f;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --code-bg: #282a36;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 72, 170, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 72, 170, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 72, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 72, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 72, 170, 0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    nav ul li {
        margin: 0.5rem 0.8rem;
    }
}
/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--light);
}

.auth-form-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.auth-form {
    padding: 3rem;
    width: 50%;
    transition: all 0.6s ease-in-out;
    z-index: 1;
}

.auth-form h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.auth-form p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(110, 72, 170, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
}

.auth-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 72, 170, 0.4);
}

.auth-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 1rem;
}

.auth-secondary:hover {
    background: rgba(110, 72, 170, 0.1);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 2;
    border-radius: 0 15px 15px 0;
}

.auth-toggle {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    height: 100%;
    color: var(--white);
    position: relative;
    left: -100%;
    width: 200%;
    transition: all 0.6s ease-in-out;
}

.auth-toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    text-align: center;
    top: 0;
    transition: all 0.6s ease-in-out;
}

.auth-toggle-left {
    left: 0;
}

.auth-toggle-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.active .auth-toggle {
    transform: translateX(50%);
}

.auth-container.active .auth-toggle-container {
    transform: translateX(-100%);
    border-radius: 15px 0 0 15px;
}

.auth-container.active .auth-toggle-left {
    transform: translateX(0);
}

.auth-container.active .auth-toggle-right {
    transform: translateX(200%);
}

.auth-container.active .sign-in {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

.auth-container.active .sign-up {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

@media (max-width: 768px) {
    .auth-form-container {
        flex-direction: column;
        max-width: 500px;
    }

    .auth-form {
        width: 100%;
        padding: 2rem;
    }

    .auth-toggle-container {
        position: relative;
        width: 100%;
        height: 150px;
        left: 0;
    }

    .auth-toggle {
        left: 0;
        width: 100%;
        height: 200%;
    }

    .auth-container.active .auth-toggle {
        transform: translateY(-50%);
    }

    .auth-container.active .auth-toggle-container {
        transform: translateY(100%);
    }

    .auth-container.active .sign-in {
        transform: translateY(100%);
    }

    .auth-toggle-panel {
        width: 100%;
        padding: 1rem;
    }

    .auth-toggle-right {
        transform: translateY(100%);
    }

    .auth-container.active .auth-toggle-right {
        transform: translateY(0);
    }

    .auth-container.active .auth-toggle-left {
        transform: translateY(-100%);
    }
}/* Profile Page Styles */
.profile-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 8rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem auto;
}

.profile-sidebar {
    flex: 1;
    min-width: 300px;
}

.profile-main {
    flex: 3;
    min-width: 300px;
}

.profile-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.profile-info p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
    margin-top: 1rem;
}

.profile-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 72, 170, 0.4);
}

.progress-container {
    margin: 1.5rem 0;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.skill-item {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-primary {
    background-color: rgba(110, 72, 170, 0.1);
    color: var(--primary);
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(110, 72, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.file-input {
    display: none;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-stats {
        justify-content: center;
    }
}