/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-back-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
}

.floating-back-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Анимация появления */
.floating-back-btn {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .floating-back-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .floating-back-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
        font-size: 1rem;
    }
}



/* News Archive Page Styles */
.news-archive-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.news-archive-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.news-archive-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 200px;
    transition: all 0.3s ease;
}

.news-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.news-archive-image {
    position: relative;
    width: 300px;
    height: 169px; /* 16:9 пропорция */
    flex-shrink: 0;
    overflow: hidden;
    margin: 20px;
    border-radius: 8px;
}

.news-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.news-archive-item:hover .news-archive-image img {
    transform: scale(1.05);
}

.news-archive-content {
    padding: 1.5rem 2rem 1.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-archive-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 600;
}

.news-archive-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-archive-content h2 a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more-archive {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    font-size: 0.85rem;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-archive:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

/* Responsive Design for Archive */
@media (max-width: 768px) {
    .news-archive-section {
        padding: 60px 0;
    }
    
    .news-archive-section h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .news-archive-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-archive-image {
        width: calc(100% - 40px);
        height: 0;
        padding-bottom: 56.25%; /* 16:9 */
        margin: 20px 20px 0 20px;
    }
    
    .news-archive-content {
        padding: 1.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .read-more-archive {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-archive-section {
        padding: 40px 0;
    }
    
    .news-archive-section h1 {
        font-size: 1.8rem;
    }
    
    .news-archive-image {
        margin: 15px 15px 0 15px;
        width: calc(100% - 30px);
    }
    
    .news-archive-content {
        padding: 1.25rem;
    }
    
    .news-archive-content h2 {
        font-size: 1.2rem;
    }
}













/* import from base

/* style.css - Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #6d28d9;
    --accent-hover: #5b21b6;
    --border-color: #404040;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(109, 40, 217, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Works Section */
.works {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.work-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 соотношение сторон (9/16 = 0.5625 * 100 = 56.25%) */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.work-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.image-placeholder {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
}

.work-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.project-type {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Project Author */
.project-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.author-avatar.placeholder {
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.author-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.contribution-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.work-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.project-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-width: 150px;
}

.contact-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-item {
        min-height: 480px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .works h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .work-item {
        padding: 1rem;
        min-height: 440px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent-color);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

















/* News Section Styles - Side by Side Layout */
.news-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.news-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Side by Side Latest News */
.latest-news {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 250px;
}

.latest-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    z-index: 2;
}

.news-image {
    position: relative;
    width: 40%;
    min-width: 300px;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-news:hover .news-image img {
    transform: scale(1.00);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-news h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.news-date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.news-summary {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.read-more {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    align-self: flex-start;
}

.read-more:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(109, 40, 217, 0.3);
}

/* Responsive Design for Side by Side News */
@media (max-width: 768px) {
    .news-section {
        padding: 50px 0;
    }
    
    .news-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .latest-news {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-image {
        width: 100%;
        min-width: auto;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 на мобильных */
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .latest-news h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 40px 0;
    }
    
    .news-section h2 {
        font-size: 1.6rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .latest-news h3 {
        font-size: 1.1rem;
    }
    
    .news-summary {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .read-more {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        align-self: stretch;
        text-align: center;
    }
}