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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.hero-gallery {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.gallery-wrapper {
    position: relative;
    width: 66.67%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 auto;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    opacity: 0.6;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.section {
    padding: 100px 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

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

.section-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.education-info {
    margin-bottom: 20px;
}

.education-university,
.education-institute,
.education-major,
.education-profile {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: normal;
}

.education-description {
    font-size: 15px;
    color: #aaaaaa;
}

.education-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.education-link:hover {
    border-bottom: 1px solid #ffffff;
}

.books-subtitle {
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-bottom: 40px;
}

.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.accordion-wrapper.collapsed .accordion {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.accordion-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #000000);
    pointer-events: none;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    transition: max-height 0.5s ease;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-title {
    font-size: 16px;
    flex: 1;
}

.content-type {
    font-size: 13px;
    color: #666666;
    margin-left: 15px;
    margin-right: 15px;
}

.accordion-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 20px;
}

.accordion-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.accordion-content strong {
    color: #ffffff;
}

.books-toggle {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.books-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.case-item {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.case-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.case-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
}

.case-description {
    font-size: 15px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
}

.cases-button {
    display: inline-block;
    width: fit-content;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid transparent;
}

.cases-button:hover {
    border-bottom: 1px solid #ffffff;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover .copy-button {
    opacity: 1;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    flex: 1;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateX(5px);
}

.contact-label {
    color: #888888;
}

.contact-value {
    color: #ffffff;
}

.copy-button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-gallery {
        order: 1;
    }

    .hero-name {
        font-size: 32px;
    }

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

    .section-title {
        font-size: 28px;
    }

    .education-card {
        padding: 30px 20px;
    }

    .contact-item {
        flex-wrap: wrap;
    }

    .contact-link {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .copy-button {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 24px;
    }

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

    .accordion-title {
        font-size: 14px;
    }

    .content-type {
        font-size: 11px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .section {
        padding: 60px 0;
    }
}
