/*
Theme Name: 3D Artist Portfolio
Theme URI: https://nemnogko.ru
Author: nemnogko
Description: Минималистичная тема для 3D художника
Version: 1.0.0
License: GNU General Public License v2
Text Domain: 3d-artist
*/

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #666;
    --color-accent: #6366f1;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --spacing-unit: 8px;
    --container-width: 1000px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-primary);
}

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

.main-menu a {
    text-decoration: none;
    color: var(--color-primary);
}

.header-contacts {
    display: flex;
    gap: 1rem;
}

.header-contacts a {
    text-decoration: none;
    font-size: 1.25rem;
}

.site-main { padding: 4rem 0; }

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a {
    text-decoration: none;
    color: inherit;
}

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

.footer-menu a {
    text-decoration: none;
    color: var(--color-secondary);
}

/* Hero */
.hero { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 10vw, 5rem); margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.5rem; color: var(--color-secondary); margin-bottom: 2rem; }
.cta-button { padding: 1rem 2rem; background: var(--color-accent); color: white; text-decoration: none; border-radius: 8px; display: inline-block; }

/* Sections */
section { padding: 4rem 0; }
section h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }

/* Works Grid */
.works-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }

.portfolio-item { position: relative; }

.portfolio-trigger { width: 100%; padding: 0; border: none; background: none; cursor: pointer; }
.portfolio-trigger img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform 0.3s; }
.portfolio-trigger:hover img { transform: scale(1.05); }

.portfolio-trigger .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-trigger:hover .overlay { opacity: 1; }

.portfolio-trigger h3 { color: white; font-size: 1.25rem; }

/* Contact */
.contact { background: var(--color-bg-alt); }
.contact p { text-align: center; margin-bottom: 2rem; color: var(--color-secondary); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-links a { padding: 1rem 2rem; background: white; border-radius: 12px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: box-shadow 0.3s; }
.contact-links a:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Contact Page */
.contact-main {
    padding: 6rem 0;
    min-height: 60vh;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-intro-text {
    font-size: 1.25rem;
    color: var(--color-secondary);
    line-height: 1.8;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}

.contact-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.contact-info p {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.contact-info-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* Skills */
.skills-list { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.skills-list span { padding: 0.75rem 1.5rem; background: var(--color-bg-alt); border-radius: 50px; font-size: 1rem; }

/* View All */
.view-all { display: block; text-align: center; padding: 1rem 2rem; background: var(--color-primary); color: white; text-decoration: none; border-radius: 8px; margin: 2rem auto 0; max-width: 200px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox .close { position: absolute; top: 2rem; right: 2rem; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 2rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.lightbox .close:hover { background: rgba(255,255,255,0.2); }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; font-size: 2rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.lightbox .prev:hover, .lightbox .next:hover { background: rgba(255,255,255,0.2); }
.lightbox .prev { left: 2rem; }
.lightbox .next { right: 2rem; }
.lightbox .content { max-width: 90%; max-height: 90%; }
.lightbox .content img, .lightbox .content video { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* Page Header */
.page-header { padding: 3rem 0; background: var(--color-bg-alt); text-align: center; }
.page-header h1 { font-size: 3rem; }

/* Mobile */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .works-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .contact-links { flex-direction: column; }
    .header-contacts { display: none; }
    .site-footer .container { flex-direction: column; gap: 1rem; text-align: center; }
    .lightbox .prev, .lightbox .next { display: none; }
    .page-header h1 { font-size: 2rem; }
}
