/* ============================================
   CreativePortal Main Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0057FF;
    --primary-dark: #0044CC;
    --secondary: #f0366e;
    --accent: #0057FF;
    --dark: #111111;
    --light: #edf2f5;
    --gray: #e4e9ed;
    --text: #111111;
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 70px;
    --header-height: 70px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Sidebar Component
   ============================================ */

.sidebar {
    background-color: white;
    width: var(--sidebar-width);
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    color: #000000;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.8rem;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .toggle-btn {
    transform: rotate(180deg);
}

/* Sidebar Menu */
.menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.menu-item:hover {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.menu-item.active {
    background-color: var(--primary);
    color: white;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-text {
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Sidebar Close Button - Hidden on desktop */
.sidebar-close {
    display: none;
}

/* Show sidebar close button only on mobile */
@media (max-width: 768px) {
    .sidebar-close {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        cursor: pointer;
        color: var(--dark);
        border-radius: 8px;
        padding: 0.5rem;
        transition: all 0.3s ease;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close:hover {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(1.1);
    }

    .sidebar-close svg {
        width: 20px;
        height: 20px;
    }
}

/* Logo variations */
.logo-full {
    display: block;
}

.logo-collapsed {
    display: none;
}

.sidebar.collapsed .logo-full {
    display: none;
}

.sidebar.collapsed .logo-collapsed {
    display: block;
    height: 40px;
    width: auto;
    margin: 10px 0 10px 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    /* Имитация высоты большого лого */
}

/* ============================================
   Main Content Area
   ============================================ */

.main-content {
    flex: 1 0 auto;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    width: calc(100% - var(--sidebar-width));
    min-height: 0;
}

.main-content.expanded {
    margin-left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
}

/* ============================================
   Header Component
   ============================================ */

.header {
    height: var(--header-height);
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 1rem;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--gray);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

.action-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.action-btn:hover {
    background-color: #b60859;
}

/* Submit Project button specific styling */
#submit-project-btn {
    background-color: #ffffff;
    color: #0057ff;
    border: 2px solid #c9dbff;
    transition: all 0.3s ease;
}

#submit-project-btn:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Cover upload button styling */
.cover-upload-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cover-upload-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.cover-upload-btn svg {
    width: 16px;
    height: 16px;
}

/* Share button and dropdown styling */
.share-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    height: 48px;
}

.share-btn:hover {
    background-color: var(--primary-dark);
}



/* Share button styling - glassmorphism design */
.share-btn-white {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    height: 48px;
    min-height: 48px;
}

.share-btn-white:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 220px;
    display: none;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.share-dropdown.show {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 0.5rem;
    border-radius: 6px;
}

.share-option:last-child {
    border-bottom: none;
}

.share-option:hover {
    background-color: rgba(0, 87, 255, 0.08);
    transform: translateX(3px);
}

.share-option svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.share-option-text {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* Project header buttons container */
.project-header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
}

/* Project hero buttons */
.project-hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .project-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .project-hero-buttons button {
        width: 100%;
        justify-content: center;
    }
}

.action-btn svg {
    margin-right: 0.5rem;
}

.notify-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.notify-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.lang-switch:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-switch span {
    margin-left: 0.5rem;
}

.sidebar.collapsed .lang-text {
    display: none;
}

.user-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.user-btn:hover {
    background-color: #1d7dd8;
    transform: translateY(-1px);
}

.sidebar.collapsed .user-btn span {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background-image: url("./assets/hero.png");
    background-size: cover;
    background-position: center;
    padding: 4.8rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    min-height: 120%;
    border: none;
    animation: heroBackgroundMove 60s ease-in-out infinite;
}

@keyframes heroBackgroundMove {
    0% {
        background-position: center top;
    }
    50% {
        background-position: center bottom;
    }
    100% {
        background-position: center top;
    }
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.4rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 3rem 0;
}

.section-content {
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark);
}

/* ============================================
   Projects Grid & Cards
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

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

.project-img {
    height: 180px;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #999;
    position: relative;
}

.project-img-gallery {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.project-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(108, 99, 255, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content,
.project-content-enhanced {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 24px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.project-title,
.project-title-enhanced {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.project-desc,
.project-desc-enhanced {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #666;
}

.project-desc {
    margin-bottom: 1.5rem;
}

/* Стили для списков в карточках проектов */
.project-desc ul,
.project-desc ol {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.project-desc li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.project-desc ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.project-desc ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

/* Стили для параграфов в карточках */
.project-desc p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.project-desc p:last-child {
    margin-bottom: 0;
}

/* Стили для жирного текста в карточках */
.project-desc strong {
    font-weight: 600;
    color: var(--dark);
}

.project-problems-preview {
    margin-bottom: 1.5rem;
}

.problems-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.problems-list-preview {
    font-size: 0.85rem;
    color: #666;
}

.problem-item-preview {
    margin-bottom: 0.3rem;
}

.problem-item-preview::before {
    content: "• ";
    color: var(--primary);
    font-weight: bold;
}

.project-footer,
.project-footer-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-status,
.project-status-enhanced {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.status-dot,
.status-dot-enhanced {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 6px 2px rgba(36,156,255,0.15);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-active {
    background-color: #10b981;
}

.status-development {
    background-color: #f59e0b;
}

.status-in_progress {
    background-color: #f59e0b;
}

.status-idea {
    background-color: #8b5cf6;
}

.status-approved {
    background-color: #3b82f6;
}

.status-pending {
    background-color: #6b7280;
}

.status-rejected {
    background-color: #ef4444;
}

.status-completed {
    background-color: #059669;
}

.project-more,
.project-more-btn {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.project-more:hover,
.project-more-btn:hover {
    text-decoration: underline;
}

/* ============================================
   Filters Component
   ============================================ */

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.category-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray);
    border-radius: 12px;
    background-color: white;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--secondary);
    background-color: rgba(240, 54, 110, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 54, 110, 0.15);
}

.category-btn.active {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 54, 110, 0.3);
}

.category-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.category-btn:hover svg,
.category-btn.active svg {
    transform: scale(1.1);
}

.category-count {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.category-btn.active .category-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-btn:hover .category-count {
    background-color: rgba(240, 54, 110, 0.1);
}

/* Animation for category buttons */
@keyframes categoryButtonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.category-btn.active {
    animation: categoryButtonPulse 0.6s ease-in-out;
}

/* ============================================
   AI Chat Button
   ============================================ */

/* Contact team button styling - glassmorphism design */
.btn-contact-enhanced {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    height: 48px !important;
    min-height: 48px !important;
}

.btn-contact-enhanced:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

/* AI Assistant pulsation animation */
@keyframes aiPulsation {
    0% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15), 
                    0 0 0 0 rgba(0, 87, 255, 0.3),
                    0 0 0 10px rgba(0, 87, 255, 0.2),
                    0 0 0 20px rgba(0, 87, 255, 0.1),
                    0 0 0 30px rgba(0, 87, 255, 0.05);
    }
    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
}

.ai-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    animation: aiPulsation 3s ease-in-out infinite;
}

.ai-chat-btn:hover {
    transform: scale(1.05);
    animation: none;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .header {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 0.7rem;
    }
    
    .lang-switch .lang-text {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-content.expanded {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header {
        padding: 0 1rem;
    }

    .search-bar {
        max-width: 50%;
        min-width: 150px;
    }

    .action-btn span {
        display: none;
    }

    .action-btn {
        padding: 0.7rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
        padding: 0;
    }

    .filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-buttons {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .header-controls {
        gap: 0.25rem;
    }
    
    .notify-btn {
        padding: 0.4rem;
    }
    
    .lang-switch {
        padding: 0.4rem;
    }
    
    .user-btn {
        padding: 0.4rem 0.8rem;
    }
    
    .user-btn span {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .category-buttons {
        gap: 0.4rem;
    }

    .category-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .category-btn svg {
        width: 14px;
        height: 14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }

    .section {
        padding: 2rem 0;
    }

    .section-content {
        padding: 0 1rem;
    }
}

/* ============================================
   Event Cards Specific Styles
   ============================================ */

.event-card .project-img {
    background-color: var(--gray);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-card .project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(108, 99, 255, 0.05) 100%);
    pointer-events: none;
}

.event-card .project-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(108, 99, 255, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-card .event-date {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.event-card .event-time {
    color: #666;
    font-weight: 400;
    font-size: 0.8rem;
}

.event-card .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.event-card .event-location svg {
    color: var(--primary);
}

/* Event detail page styles */
.project-detail .project-header {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.project-detail .project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: var(--border-radius);
}

.project-detail .project-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.project-detail .project-category.large {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.project-detail .project-title.large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .project-detail .project-header {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .project-detail .project-title.large {
        font-size: 1.8rem;
    }
    
    .event-card .project-img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .project-detail .project-header {
        min-height: 180px;
        padding: 1rem;
    }
    
    .project-detail .project-title.large {
        font-size: 1.5rem;
    }
    
    .event-card .project-img {
        height: 120px;
    }
    
    .event-card .project-category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* ============================================
   Event Link Styles
   ============================================ */

.event-link-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
}

.event-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, #1d7dd8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(36, 156, 255, 0.2);
    min-height: 44px;
    justify-content: center;
    width: 100%;
}

.event-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 156, 255, 0.3);
}

.event-link-btn svg {
    width: 16px;
    height: 16px;
}

.event-link-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 1rem;
}

.event-link-btn-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 156, 255, 0.3);
}

.event-link-btn-large svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Event Action Buttons
   ============================================ */

.event-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 1rem;
    height: 48px;
}

.event-register-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 156, 255, 0.3);
}

.event-register-btn svg {
    width: 18px;
    height: 18px;
}

.event-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #34a853;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 1rem;
    height: 48px;
}

.event-calendar-btn:hover {
    background-color: #2d8f47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

        .event-calendar-btn svg {
            width: 18px;
            height: 18px;
        }
        
        /* ============================================
           Speaker Cards Styles
           ============================================ */
        
        .speakers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .speaker-card {
            background-color: var(--gray);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            border: 1px solid #e0e0e0;
            transition: var(--transition);
        }
        
        .speaker-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        
        .speaker-header {
            margin-bottom: 1rem;
        }
        
        .speaker-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
            margin: 0 0 0.5rem 0;
        }
        
        .speaker-position {
            font-size: 0.9rem;
            color: #666;
            font-weight: 500;
        }
        
        .speaker-time {
            font-size: 0.9rem;
            color: #888;
            margin-bottom: 0.8rem;
            font-weight: 500;
        }
        
        .speaker-topic {
            font-size: 1rem;
            color: #333;
            line-height: 1.5;
            font-weight: 400;
        }
        
        .project-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
}

@media (max-width: 768px) {
    .project-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-link-btn-large,
    .event-register-btn,
    .event-calendar-btn {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }
}

 /* ============================================
    Test Event Styles
    ============================================ */

/* Специальные стили для тестового мероприятия */
.project-card[data-event-id="0"],
.event-card[data-event-id="0"] {
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card[data-event-id="0"] .project-title,
.event-card[data-event-id="0"] .project-title {
    color: #000000;
    font-weight: bold;
}

.project-card[data-event-id="0"]:hover .project-title,
.event-card[data-event-id="0"]:hover .project-title {
    color: var(--primary);
}

@media (max-width: 768px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .speaker-card {
        padding: 1.2rem;
    }
    
    .speaker-name {
        font-size: 1.1rem;
    }
}

/* ============================================
   Search Suggestions Styles
   ============================================ */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

.suggestions-section {
    padding: 0.5rem 0;
}

.suggestions-header {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.suggestion-category svg {
    color: var(--primary);
    flex-shrink: 0;
}

.suggestions-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.no-suggestions {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive styles for search suggestions */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 300px;
    }
    
    .suggestion-item {
        padding: 0.6rem 0.8rem;
    }
    
    .suggestion-title {
        font-size: 0.85rem;
    }
    
    .suggestion-category {
        font-size: 0.75rem;
    }
}

/* ============================================
   Search Results Styles
   ============================================ */

.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

/* Responsive styles for search results */
@media (max-width: 768px) {
    .search-results-container {
        gap: 1.5rem;
    }
    
    .search-section-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
    text-align: center;
}

.loading-icon {
    width: 60px;
    height: 60px;
    animation: loading-spin 2s ease-in-out infinite;
    opacity: 0.8;
    color: var(--primary);
    margin: 0 auto;
}

@keyframes loading-spin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

/* ============================================
   Event Speakers Styles
   ============================================ */

.speakers-list {
    margin: 1.5rem 0;
}

.speaker-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary);
}

.speaker-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
}

/* ============================================
   Education Section Styles
   ============================================ */

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

.lesson-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lesson-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.lesson-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lesson-card:hover .lesson-thumbnail {
    transform: scale(1.05);
}

.lesson-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.lesson-card:hover .lesson-play-overlay {
    opacity: 1;
}

.lesson-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f5f5f5;
}

.lesson-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.lesson-content {
    padding: 1.5rem;
}

.lesson-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.lesson-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.lesson-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.lesson-more-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.lesson-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Lesson Detail Page Styles */
.lesson-detail-header {
    margin-bottom: 2rem;
}

.lesson-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.lesson-video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Maintain 16:9 aspect ratio on container */
    padding-bottom: 56.25%;
}

.lesson-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-video-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f5f5f5;
    border-radius: var(--border-radius);
}

.lesson-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lesson-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.lesson-duration {
    color: #666;
    font-size: 0.9rem;
}

.lesson-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.lesson-description-full {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.lesson-actions {
    margin-top: auto;
}

.youtube-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    width: fit-content;
}

.youtube-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

/* Responsive styles for education */
@media (max-width: 1024px) {
    .lesson-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .lesson-img-container {
        height: 180px;
    }
    
    .lesson-content {
        padding: 1rem;
    }
    
    .lesson-title-large {
        font-size: 1.5rem;
    }
    
    .lesson-detail-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lesson-img-container {
        height: 160px;
    }
    
    .lesson-title-large {
        font-size: 1.3rem;
    }
}

/* ============================================
   Video Modal Styles
   ============================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.video-modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray);
    background: #f8f9fa;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    margin-right: 1rem;
}

.video-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #666;
}

.video-modal-close:hover {
    background-color: #e9ecef;
    color: var(--dark);
}

.video-modal-body {
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 80px);
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 300px;
}

.video-description h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.video-description p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #666;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
}

.video-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-duration {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-duration::before {
    content: "⏱";
    font-size: 1rem;
}

/* Responsive styles for video modal */
@media (max-width: 768px) {
    .video-modal {
        padding: 0.5rem;
    }
    
    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .video-modal-header {
        padding: 1rem;
    }
    
    .video-modal-header h3 {
        font-size: 1rem;
    }
    
    .video-description {
        padding: 1rem;
        max-height: 200px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .video-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .video-modal-header h3 {
        margin-right: 0;
    }
    
    .video-modal-close {
        align-self: flex-end;
    }
}
