/* Base styles */
:root {
    --primary-color: #4FB0C6;
    --secondary-color: #2A4494;
    --accent-color: #FFD700;
    --text-color: #333;
    --background-color: #fff;
    --light-gray: #f8f8f8;
    --border-color: #eee;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Header styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links li {
    position: relative;
}

.nav-links .dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    /* margin-left: 30px;
    padding-left: 20px; */
    border-left: 1px solid var(--border-color);
}

.language-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background-color: var(--primary-color);
    color: white;
}

.language-switcher a:hover:not(.active) {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color);
        padding: 80px 20px 20px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
    }

    .language-switcher {
        margin: 15px 0;
        padding: 15px 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background.parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 180, 153, 0.284) 0%, rgba(150, 114, 89, 0.163) 100%);
    opacity: 0.6;
    transform: translateZ(0);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-text {
    padding-top: 0;
    position: relative;
    z-index: 200;
}

.hero-tag-wrapper {
    display: inline-block;
    background: rgba(79, 176, 198, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-tag {
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.animated-heading {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
}

.animated-heading::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 130px;
    height: 40px;
    background: url('../images/pencil-primary.svg') no-repeat center;
    background-size: contain;
    transform: rotate(-132deg);
}

@keyframes lineGrow {
    to {
        transform: rotate(0deg);
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 200;
    height: 120px;
}

.hero-feature {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100px;
    overflow: hidden;
    position: absolute;
    width: calc(33.33% - 10px);
    z-index: 200;
}

.hero-feature:nth-child(1) {
    left: 0;
}

.hero-feature:nth-child(2) {
    left: calc(33.33% + 5px);
}

.hero-feature:nth-child(3) {
    right: 0;
}

.hero-feature:hover {
    height: auto;
    min-height: 150px;
    transform: translateY(-10px);
    z-index: 201;
}

.hero-feature.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    padding: 20px;
}

.testimonial-content {
    position: relative;
    flex-grow: 1;
}

.testimonial-short {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-full {
    display: none;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 10px;
    background: white;
    padding: 0;
    border-radius: 8px;
}

.hero-feature:hover .testimonial-short {
    display: none;
}

.hero-feature:hover .testimonial-full {
    display: block;
}

.testimonial-author {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .hero-features {
        height: auto;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-feature {
        position: static;
        width: 100%;
        height: auto;
        min-height: 90px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .hero-feature:nth-child(1),
    .hero-feature:nth-child(2),
    .hero-feature:nth-child(3) {
        left: auto;
        right: auto;
    }

    .hero-feature:hover {
        min-height: 140px;
        transform: none;
    }

    .testimonial-short,
    .testimonial-full {
        font-size: 11px;
        line-height: 1.3;
    }

    .testimonial-author {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-features {
        height: auto;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-feature {
        position: static;
        width: 100%;
        height: auto;
        min-height: 80px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .hero-feature:nth-child(1),
    .hero-feature:nth-child(2),
    .hero-feature:nth-child(3) {
        left: auto;
        right: auto;
    }

    .hero-feature:hover {
        min-height: 130px;
        transform: none;
    }

    .testimonial-short,
    .testimonial-full {
        font-size: 10px;
        line-height: 1.2;
    }

    .testimonial-author {
        font-size: 9px;
    }
}

.feature-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.hero-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: flex-start;
    z-index: 150;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    height: 150px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    height: 100%;
}

.gallery-item.main {
    margin-bottom: 20px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.hover-effect:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    z-index: 100;
    pointer-events: none;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-color);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Portfolio section */
.portfolio {
    padding: 100px 0;
    background: var(--light-gray);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.portfolio-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-tab .pencil-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    transform: rotate(-90deg);
}

.portfolio-tab:hover .pencil-icon {
    transform: rotate(-105deg) scale(1.1);
}

.portfolio-tab.active .pencil-icon {
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

.portfolio-tab span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.portfolio-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-tab.active {
    background: var(--primary-color);
}

.portfolio-tab.active span {
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item {
    grid-column: span 4;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

/* .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    padding: 30px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
} */

/* .work-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-overlay h3 {
    margin: 10px 0;
    font-size: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.3s;
} */

/* .view-details {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.4s;
}

.portfolio-item:hover .work-category,
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .view-details {
    opacity: 1;
    transform: translateY(0);
}

.view-details:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
} */

/* About section */
.about {
    padding: 6rem 2rem;
    background-color: white;
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: var(--transition);
}

.about-experience {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: scale(0.85);
}

.experience-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    padding: 20px;
}

.about-text .section-header {
    margin-bottom: 30px;
    text-align: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.about-description {
    margin-top: 30px;
    margin-bottom: 40px;
}

.about-description p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.about-skills {
    display: grid;
    gap: 20px;
}

.skill {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
}

.skill-name {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* About section updates */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-feature ul {
    list-style: none;
}

.about-feature li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-feature li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Education section */
.education {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
    position: relative;
}

.education .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.education h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.education h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.education-content {
    padding: 30px;
}

.education-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.education-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.education-list {
    list-style: none;
}

.education-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.education-list li:last-child {
    margin-bottom: 0;
}

.list-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.education-list .list-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.education-list .list-content .text-content {
    flex-grow: 1;
}

.education-list .list-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.education-list .list-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.list-content .btn-enroll {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        margin-bottom: 30px;
    }

    .education-content {
        padding: 20px;
    }

    .list-content {
        flex-direction: column;
        gap: 10px;
    }

    .list-content .btn-enroll {
        align-self: flex-start;
    }
}

/* Contact section */
.contact {
    padding: 6rem 2rem;
    background-color: white;
    position: relative;
}

.contact-background {
    display: none;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.contact-list {
    list-style: none;
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

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

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    font-size: 16px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

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

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin: 0 auto;
    }

    .contact-card,
    .contact-form {
        padding: 25px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-text p {
        font-size: 14px;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-link {
        flex: 1;
        min-width: calc(33.33% - 7px);
        text-align: center;
        padding: 8px 12px;
    }
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.footer-info {
    text-align: left;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-nav h4,
.footer-social h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social .social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
}

.footer-social .social-link {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    grid-column: 1 / -1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-info {
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social .social-links {
        justify-content: center;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .animated-heading::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    @keyframes lineGrow {
        to {
            transform: translateX(-50%) scaleX(1);
        }
    }

    .portfolio-item.large {
        grid-column: auto;
    }

    .scroll-indicator {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        height: 200px;
    }

    .gallery-item img {

        object-fit: cover;
        object-position: center;
    }

    .hero {
        min-height: 85vh;
        padding: 100px 0 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .hero-text {
        text-align: center;
        padding-top: 40px;
    }

    .animated-heading {
        font-size: 32px;
    }

    .animated-heading::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    @keyframes lineGrow {
        to {
            transform: translateX(-50%) scaleX(1);
        }
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }

    .hero-feature {
        padding: 15px 10px;
    }

    .feature-number {
        font-size: 28px;
    }

    .feature-text {
        font-size: 12px;
    }

    .hero-gallery {
        margin-top: 20px;
    }

    .gallery-item img {

        object-fit: cover;
        object-position: center;
    }

    .scroll-indicator {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-tag-wrapper {
        display: inline-block;
        margin-bottom: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item.main {
        grid-column: 1 / -1;
        height: 250px;
    }

    .portfolio-categories {
        flex-wrap: wrap;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-info {
        text-align: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-experience {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }

    .experience-number {
        font-size: 28px;
    }

    .about-text {
        padding: 0;
    }

    .header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Планшеты в ландшафтной ориентации */
@media (max-width: 1024px) and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .portfolio-item {
        grid-column: span 3;
        height: 280px;
    }
}

/* Планшеты в портретной ориентации */
@media (max-width: 768px) and (min-width: 481px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .portfolio-item {
        grid-column: span 2;
        height: 250px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-item {
        grid-column: span 1;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 110vh;
        padding: 60px 0 10px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        grid-column: span 1;
        height: 250px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-feature:last-child {
        width: 100%;
    }

    .hero-text {
        padding-top: 50px;
    }

    .animated-heading {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-tag {
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .contact-card,
    .contact-form {
        padding: 20px;
        margin: 0;
    }

    .contact-text h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .contact-text p {
        font-size: 13px;
        word-break: break-all;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }

    .social-link {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.portfolio-item,
.about-content,
.contact-content {
    animation: fadeIn 1s ease-out forwards;
}

/* Card image updates */
.card-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.education-card:hover .card-image img {
    transform: scale(1.05);
}

/* Benefits section */
.benefits {
    padding: 6rem 2rem;
    background-color: white;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Модальное окно портфолио */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: flex;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.modal-image img {
    display: block;
    max-width: 70vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 400px;
    overflow-y: auto;
}

.modal-category {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

/* Кнопки навигации модального окна */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    color: var(--text-color);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1001;
}

/* Стили для кнопок в портфолио */
.portfolio-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.4s;
}

.portfolio-item:hover .portfolio-buttons {
    opacity: 1;
    transform: translateY(0);
}

.view-details,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.view-details {
    background: var(--accent-color);
    color: var(--text-color);
}

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

.view-details:hover,
.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .modal-content {
        flex-direction: column;
        max-width: 90vw;
        max-height: 90vh;
    }

    .modal-image img {
        max-width: 90vw;
        max-height: 60vh;
    }

    .modal-info {
        padding: 30px;
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-image img {
        max-width: 95vw;
        max-height: 50vh;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h3 {
        font-size: 24px;
    }

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

    .view-details,
    .btn-buy {
        width: 100%;
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.section-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: center;
}

.portfolio-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.portfolio-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

.nav-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: var(--primary-color);
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .portfolio-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-nav-link {
        width: 100%;
        justify-content: center;
    }
}

/* Blog styles */
.blog {
    padding: 120px 20px 60px;
    background-color: var(--light-gray);
}

.blog .section-header {
    margin-bottom: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.blog-post .post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.post-category {
    color: var(--primary-color);
}

.post-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 200px;
    }
}

.portfolio-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-tab .pencil-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    transform: rotate(-90deg);
}

.portfolio-tab:hover .pencil-icon {
    transform: rotate(-105deg) scale(1.1);
}

.portfolio-tab.active .pencil-icon {
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

/* Стили для отдельных страниц портфолио */
.portfolio-page {
    padding: 120px 20px 60px;
    background-color: var(--light-gray);
}

.portfolio-page .section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.portfolio-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.portfolio-page .section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.portfolio-page .portfolio-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.portfolio-page .portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    transition: var(--transition);
    cursor: pointer;
    grid-column: span 4;
}

/* Планшеты в ландшафтной ориентации - страницы портфолио */
@media (max-width: 1024px) and (min-width: 769px) {
    .portfolio-page .portfolio-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .portfolio-page .portfolio-item {
        grid-column: span 3;
        height: 280px;
    }
}

/* Планшеты в портретной ориентации - страницы портфолио */
@media (max-width: 768px) and (min-width: 481px) {
    .portfolio-page {
        padding: 100px 15px 40px;
    }

    .portfolio-page h1 {
        font-size: 2.2rem;
    }

    .portfolio-page .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .portfolio-page .portfolio-item {
        grid-column: span 2;
        height: 250px;
    }
}

/* Мобильные устройства - страницы портфолио */
@media (max-width: 480px) {
    .portfolio-page {
        padding: 90px 10px 30px;
    }

    .portfolio-page h1 {
        font-size: 1.8rem;
    }

    .portfolio-page .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-page .portfolio-item {
        grid-column: span 1;
        height: 200px;
    }
}

/* Стили для текста в оверлеях портфолио */
/* .portfolio-page .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.4) 100%);
    padding: 30px;
    color: white;
    opacity: 0.2;
    transition: all 0.4s ease;
}

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

.portfolio-page .work-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .portfolio-overlay h3 {
    color: white;
    margin: 10px 0;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .view-details {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

.portfolio-page .portfolio-item:hover .work-category,
.portfolio-page .portfolio-item:hover .portfolio-overlay h3,
.portfolio-page .portfolio-item:hover .portfolio-overlay p,
.portfolio-page .portfolio-item:hover .view-details {
    opacity: 1;
    transform: translateY(0);
} */

/* Стили для модального окна на страницах портфолио */
.portfolio-page .modal-category {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.portfolio-page .modal-info h3 {
    color: var(--text-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.portfolio-page .modal-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.portfolio-page [data-aos='fade'] {
    opacity: 1 !important;
}

/* .portfolio-page .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.4) 100%);
    padding: 30px;
    color: white;
    opacity: 0.2;
    transition: all 0.4s ease;
}

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

.portfolio-page .work-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .portfolio-overlay h3 {
    color: white;
    margin: 10px 0;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-page .view-details {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

.portfolio-page .portfolio-item:hover .work-category,
.portfolio-page .portfolio-item:hover .portfolio-overlay h3,
.portfolio-page .portfolio-item:hover .portfolio-overlay p,
.portfolio-page .portfolio-item:hover .view-details {
    opacity: 1;
    transform: translateY(0);
} */

.portfolio-buttons,
.education-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-buy,
.btn-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-buy {
    background: var(--accent-color);
    color: var(--text-color);
}

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

.btn-buy:hover,
.btn-enroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-buttons .btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-decoration: none;
}

.modal-buttons .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.modal-buttons .btn-buy:hover,
.modal-buttons .view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

/* Стили для модального окна курса */
.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.course-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 40px auto;
}

.course-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.course-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.course-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.course-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-detail-icon {
    color: var(--primary-color);
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.course-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .course-details {
        grid-template-columns: 1fr;
    }
    
    .portfolio-buttons,
    .education-buttons,
    .modal-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.portfolio-overlay .portfolio-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.portfolio-overlay .portfolio-buttons .view-details,
.portfolio-overlay .portfolio-buttons .btn-buy {
    all: initial;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 35px;
    padding: 0 16px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    margin: 0;
    line-height: 35px;
}

.portfolio-overlay .portfolio-buttons .view-details:hover,
.portfolio-overlay .portfolio-buttons .btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для блога */
.blog-post {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.post-meta time {
    margin-right: 15px;
}

.post-category {
    color: var(--accent-color);
}

.post-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.post-subtitle {
    font-size: 1.5em;
    color: var(--text-secondary);
    font-weight: 400;
}

.post-content {
    line-height: 1.8;
}

.text-block {
    margin-bottom: 30px;
}

.text-block p {
    margin-bottom: 20px;
}

.image-block {
    margin: 40px 0;
}

.image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-block figcaption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9em;
}

.gallery-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

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

.gallery-item img:hover {
    transform: scale(1.02);
}

.video-block {
    margin: 40px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-caption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9em;
}

.quote-block {
    margin: 40px 0;
    padding: 20px 40px;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-secondary);
    border-radius: 4px;
}

.quote-block p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.quote-block cite {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.post-tags {
    margin: 40px 0;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.prev-post,
.next-post {
    flex: 0 0 45%;
    text-decoration: none;
    color: var(--text-primary);
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
}

.related-posts {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card time {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.post-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.post-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-post {
        margin: 40px auto;
    }

    .post-title {
        font-size: 2em;
    }

    .post-subtitle {
        font-size: 1.2em;
    }

    .gallery-block {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post,
    .next-post {
        flex: 0 0 100%;
        text-align: left;
    }
}

.blog-post-full {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-post-full .post-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-post-full .post-meta {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.blog-post-full .post-meta span {
    margin: 0 10px;
}

.blog-post-full h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.blog-post-full .post-image-full {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-full .post-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-full .post-content-full {
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--text-primary);
}

.blog-post-full .post-content-full p {
    margin-bottom: 20px;
}

.blog-post-full .post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.blog-post-full .post-navigation a {
    flex: 0 0 45%;
    text-decoration: none;
    color: var(--text-primary);
}

.blog-post-full .post-navigation .nav-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.blog-post-full .post-navigation .nav-title {
    font-weight: 500;
}

.blog-post-full .post-navigation .next-post {
    text-align: right;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--background-color);
        padding: 80px 20px 20px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        background: transparent;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
        color: var(--text-color);
    }

    .dropdown-content a {
        font-size: 1rem;
        padding: 8px 0;
        color: var(--text-color);
    }

    .nav-links li {
        width: 100%;
    }
}

/* Стили для блока с донатом */
.donate-block {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donate-block h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.donate-block p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 600px;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donate-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.donate-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .donate-block {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .donate-block h4 {
        font-size: 1.2rem;
    }
    
    .donate-block p {
        font-size: 0.95rem;
    }
    
    .donate-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-buttons,
    .education-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .modal-buttons .btn-buy,
    .modal-buttons .view-all-btn {
        width: 100%;
        justify-content: center;
    }

    .portfolio-overlay .portfolio-buttons {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .portfolio-overlay .portfolio-buttons .view-details,
    .portfolio-overlay .portfolio-buttons .btn-buy {
        width: auto;
    }
}

.about-description .hidden {
    display: none;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    margin-top: 20px;
    position: relative;
    font-weight: 500;
}

.read-more-btn:hover {
    color: var(--accent-color);
}

.read-more-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 8px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: scaleX(1);
    background-color: var(--accent-color);
}

.purchase-form {
    margin-top: 20px;
}

.purchase-form .form-group {
    margin-bottom: 15px;
}

.purchase-form input,
.purchase-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.purchase-form input:focus,
.purchase-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.purchase-form textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-purchase-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.submit-purchase-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .purchase-form {
        margin-top: 15px;
    }

    .purchase-form input,
    .purchase-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .submit-purchase-btn {
        padding: 10px;
        font-size: 14px;
    }
}

.purchase-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.purchase-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.purchase-modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.purchase-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.purchase-work-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-work-info .work-title {
    font-weight: 500;
    color: var(--text-color);
}

.purchase-work-info .work-price {
    color: var(--primary-color);
    font-weight: 700;
}

.purchase-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.3);
}

.purchase-modal .close-modal:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .purchase-modal-content {
        padding: 20px;
    }

    .purchase-modal h3 {
        font-size: 20px;
    }

    .purchase-work-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.privacy-policy {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-policy a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-policy {
        font-size: 11px;
        margin-top: 8px;
    }
}

.hero-feature.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    text-align: left;
    padding: 25px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    left: -10px;
    top: -15px;
}

.testimonial-author {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
}

@media (max-width: 768px) {
    .hero-feature.testimonial {
        min-height: auto;
        padding: 20px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .testimonial-author {
        font-size: 12px;
    }
}

.contact-card .social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
}

.contact-card .social-link {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logo-image {
    height: 95px;
    width: auto;
    display: block;
}

.footer-logo .logo-image {
    height: 70px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }
    
    .footer-logo .logo-image {
        height: 60px;
    }
}