/* ==================================== */
/* 1. Base Styles and Typography        */
/* ==================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
}

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

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin: 40px 0 20px;
}

h2 {
    color: #4CAF50;
    font-size: 2em;
    margin-bottom: 30px;
}

p {
    text-align: center;
    color: #ccc;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ==================================== */
/* 2. Header and Navigation             */
/* ==================================== */
header {
    background-color: #1f1f1f;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

header .logo img {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    text-transform: uppercase;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

header nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #4CAF50;
}

.shop-links {
    display: flex;
    gap: 10px;
}

/* ==================================== */
/* 3. Button Styles                     */
/* ==================================== */
.btn, .shop-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover, .shop-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.shop-btn {
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2c2c2c;
    border-radius: 5px;
}

.shop-btn.cgtrader {
    background-color: #f77d00;
}

.shop-btn.cgtrader:hover {
    background-color: #d16b00;
}

.shop-btn.superhive {
    background-color: #6a1b9a;
}

.shop-btn.superhive:hover {
    background-color: #58157f;
}

.filter-buttons {
    text-align: center;
    margin: 20px 0;
}

.filter-btn {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}


/* ==================================== */
/* 4. Main Content Sections             */
/* ==================================== */
.intro {
    text-align: center;
    padding: 50px 0;
}

.intro h2 {
    font-size: 2.5em;
}

.about-blender {
    padding: 30px 0;
    text-align: center;
}

.blender-logo-img {
    height: 60px;
    margin-right: 15px;
    vertical-align: middle;
}

.about-blender h3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================================== */
/* 5. Gallery and Item Styles           */
/* ==================================== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.works-gallery .gallery {
    flex-wrap: wrap;
}

.home-gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 0;
}

.item {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 300px;
    flex-shrink: 0;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.item h3 {
    font-size: 1.2em;
    margin: 15px 0 10px;
    color: #e0e0e0;
}

.item .btn {
    display: block;
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 15px 15px 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.item .btn:hover {
    background-color: #45a049;
}

/* ==================================== */
/* 6. About and Works Pages Styles      */
/* ==================================== */
.page-header {
    /* Удаляем background-color */
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid #333;
}

.page-header h2 {
    font-size: 3em;
    color: #4CAF50;
    margin: 0;
}

.page-header p {
    max-width: 700px;
    margin: 10px auto 0 auto;
    font-size: 1.1em;
}

.about-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

@media (min-width: 768px) {
    .about-bio {
        flex-direction: row;
        text-align: left;
    }
}

.bio-image {
    flex-shrink: 0;
}

.bio-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bio-text {
    flex-grow: 1;
}

.bio-text h3 {
    font-size: 1.8em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.bio-text p {
    font-size: 1.1em;
    line-height: 1.8;
}

.bio-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .bio-buttons {
        justify-content: flex-start;
    }
}

/* ==================================== */
/* 7. Project Page Styles               */
/* ==================================== */
.project-page {
    padding: 40px 20px;
    text-align: center;
}

.project-title {
    font-size: 2.5em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.project-media {
    margin-bottom: 40px;
}

.main-media {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.main-media img,
.main-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.project-gallery img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

.project-info {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.project-info p {
    font-size: 1.1em;
    line-height: 1.8;
}

.project-specs {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: left;
}

.project-specs h3 {
    color: #4CAF50;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.project-specs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.project-specs ul li {
    margin-bottom: 8px;
    font-size: 1em;
}

.project-specs ul li i {
    color: #4CAF50;
    margin-right: 10px;
}

.project-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* ==================================== */
/* 8. Footer Styles                     */
/* ==================================== */
footer {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    border-top: 2px solid #333;
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #888;
}

/* ==================================== */
/* 9. Responsive Design                 */
/* ==================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    header .logo {
        text-align: center;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .shop-links {
        justify-content: center;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .filter-btn {
        flex-grow: 1;
        font-size: 0.9em;
    }

    .gallery, .home-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .item, .home-gallery .item {
        width: 100%;
        max-width: 350px;
    }
    
    .project-page .main-media iframe {
        height: 300px;
    }

    .project-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-text {
        text-align: center;
    }
    
    .bio-text h3 {
        text-align: center;
    }

    .bio-text p {
        text-align: center;
    }
    
    .bio-buttons {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .about-bio {
        flex-direction: row;
        text-align: left;
    }
    
    .bio-text h3, .bio-text p {
        text-align: left;
    }

    .bio-buttons {
        justify-content: flex-start;
    }
}

.search-container {
    text-align: center;
    margin-bottom: 20px;
}

#searchInput {
    padding: 10px 15px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    font-size: 1em;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: #888;
}

#searchInput:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}