:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #2e1a3a;
    --text-color-light: #e0e0e0;
    --text-color-dark: #333;
    --accent-color: #8c7ae6;
    --link-hover: #a29bfe;
    --card-bg: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--primary-bg);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    margin-right: 10px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
    color: #fff;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-bg);
    padding: 60px 20px;
}

.hero-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.hero-image-column,
.hero-text-column {
    width: 100%;
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-color-light);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(140, 122, 230, 0.7);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-links {
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    color: #fff;
    background-color: var(--accent-color);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.social-link i {
    margin-right: 8px;
}

.social-link:hover {
    background-color: var(--link-hover);
    transform: translateY(-3px);
}

/* Sections General */
section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--link-hover);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--secondary-bg);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--primary-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.portfolio-item:hover .overlay-text {
    opacity: 1;
}

.view-more {
    margin-top: 60px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--link-hover);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-bg);
}

.contact-text {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-bottom: 30px;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-social-links .social-link {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.7rem;
    border-radius: 50%;
    margin: 0 8px;
}

.contact-social-links .social-link:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* Footer */
.footer {
    background: var(--primary-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

/* Адаптивність */
@media (min-width: 768px) {
    .hero-content-container {
        flex-direction: row;
        text-align: left;
    }
    .hero-image-column,
    .hero-text-column {
        width: 50%;
    }
    .hero-image-column {
        text-align: left;
    }
    .hero-text-column {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .nav-menu ul {
        margin-top: 15px;
    }
    .nav-menu ul li {
        margin: 0 10px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .social-link {
        margin: 10px 5px;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    .site-logo {
        height: 30px;
    }
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu ul li {
        margin-bottom: 10px;
    }
}
