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

body {
    font-family: 'Crimson Text', serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 20%), radial-gradient(circle at 80% 80%, rgba(200, 170, 120, 0.12), transparent 25%);
    pointer-events: none;
}

body::after {
    content: none !important;
}

body {
    overflow: hidden;
}


.container {
    display: flex;
    height: 100vh;
}

.left-column {
    width: 50%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
}

.name {
    font-size: 3rem;
    font-weight: 600;
    color: #2c3e50;
    position: absolute;
    bottom: 2rem;
    left: calc(50% - 42.5%);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameEntrance 1.1s ease forwards;
}

@keyframes nameEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.06);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.portrait-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 260px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: none;
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.right-column {
    width: 50%;
    position: relative;
    padding: 10vh 2rem 2rem 2rem;
}

.lightbox {
    width: 100%;
    max-width: 600px;
    background-color: rgba(238, 238, 238, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    position: absolute;
    top: 10vh;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lightbox:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
}

.carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
    text-align: center;
    transform: translateX(20px);
}

.slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.slide h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.slide p {
    font-size: clamp(1rem, 1.5vh + 0.3rem, 1.4rem);
    line-height: 1.7;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

.slide ul {
    font-size: clamp(1rem, 1.5vh + 0.3rem, 1.4rem);
    line-height: 1.7;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
}

.slide li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.social-link i {
    font-size: 1.3rem;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
    flex-shrink: 0;
}

.prev-btn, .next-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: #2c3e50;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.5);
}

.dot:hover {
    background-color: #34495e;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    body {
        min-height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .left-column, .right-column {
        width: 100%;
        height: auto;
        padding: 1rem 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .name {
        position: static;
        order: -1;
        text-align: center;
        font-size: 2.5rem;
        margin: 0.75rem 0 1rem;
        width: 100%;
    }

    .portrait-wrapper {
        position: static;
        order: 0;
        transform: none;
        width: 100%;
        height: 220px;
        margin: 0 auto 1rem;
    }

    .lightbox {
        position: static;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        min-height: 300px;
        max-height: none;
        overflow: visible;
    }

    .carousel {
        height: auto;
        align-items: flex-start;
        overflow: visible;
    }

    .slide {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .controls {
        position: static;
        margin-top: 1rem;
        padding-top: 1rem;
        background: transparent;
    }

    .slide p, .slide ul {
        font-size: clamp(0.95rem, 2.5vh + 0.1rem, 1.3rem);
    }

    .prev-btn, .next-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}
