@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;500&display=swap');

html, body, .page-container {
    height: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 300;
    color: #1c1c1e;
    line-height: 1.5;
    background: #ffffff;
    overflow-x: hidden;
}

a {
    color: #1c1c1e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

p {
    line-height: 1.7;
}

h2 {
    font-size: 1.8rem;
    font-weight: 300;
}

h3 {
    font-weight: 300;
}

.page-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    min-height: 100vh;
}

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: none;
    padding: 8px 20px;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1860px;
    margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
}

.navbar-brand {
    font-size: 0;
    margin-right: auto;
}

.navbar-brand img {
    height: 90px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 8px;
}

.nav-link {
    font-size: 0.95rem;
    padding: 8px 12px;
    border-bottom: 1px solid transparent;
    color: #1c1c1e;
    display: block;
    transition: all 0.3s ease;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.nav-item.selected .nav-link,
.nav-link:hover {
    color: #666;
}

.nav-item.selected::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1c1c1e;
}

.circle {
    display: none;
}

.main-content {
    flex: 1;
}

.page {
    display: none;
    min-height: calc(100vh - 160px);
    padding-bottom: 80px;
}

.page.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

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

.home-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#page-1 {
    margin-top: 0;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
    gap: 0;
}

.video-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.3);
}

.images-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.image-block {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) grayscale(100%);
    transition: filter 0.5s ease;
}

.image-block:hover img {
    filter: blur(0) grayscale(100%);
}

.tm-bg-dark {
    background-color: rgba(255, 255, 255, 0.3);
    margin: 50px 0;
    padding: 3em;
    border-radius: 15px;
    backdrop-filter: blur(15px);
}

.gallery-section {
    margin-top: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

figure.effect-julia {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: rgba(255,255,255,0.3);
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

figure.effect-julia img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 1s, transform 1s;
}

figure.effect-julia figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    color: #1c1c1e;
    font-size: 1.5em;
}

figure.effect-julia p {
    display: inline-block;
    margin: 0;
    padding: 0.4em 1em;
    background: rgba(255,255,255,0.8);
    color: #1c1c1e;
    font-weight: 300;
    font-size: 75%;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(-360px,0,0);
    border-radius: 5px;
}

figure.effect-julia:hover img {
    opacity: 0.5;
    transform: scale3d(1.05,1.05,1);
}

figure.effect-julia:hover p {
    opacity: 1;
    transform: translate3d(0,0,0);
}

.visual-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.visual-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.visual-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.visual-modal-info {
    color: white;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.visual-modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.visual-modal-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.visual-modal-year {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.7;
}

.visual-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.visual-modal-close:hover {
    color: #ccc;
}

.btn {
    font-size: 1.3rem;
    padding: 13px 23px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.btn-outline-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    font-weight: 300;
    max-width: 200px;
}

.btn-outline-secondary:hover {
    background-color: white;
    border: 2px solid white;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.contact-section {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 2rem;
    background-color: #000000;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.contact-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    font-family: inherit;
    text-align: center;
}

.contact-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    font-family: inherit;
    text-align: left;
}

.contact-form .input-group.justify-content-end {
    display: flex;
    justify-content: center;
    text-align: left;
}

.contact-form .form-control {
    font-size: 1.2rem;
    font-family: inherit;
    padding: 15px;
    color: white;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
    border-radius: 6px;
    width: 100%;
    outline: none;
    text-align: left;
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.8);
    font-family: inherit;
    text-align: left;
}

.contact-form .form-control:focus {
    border-color: rgba(255,255,255,0.9);
    color: white;
}

.contact-info {
    color: white;
    font-family: inherit;
    text-align: center;
}

.contact-item {
    color: white;
    font-family: inherit;
    text-align: center;
}

.tm-link-white {
    color: white !important;
    font-family: inherit;
    text-align: center;
}

.content-section {
    padding: 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 40px;
    font-family: inherit;
    text-align: right;
    overflow-x: hidden;
}

.poem-index {
    background: rgba(245, 245, 245, 0.8);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: right;
}

.poem-index h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.poem-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.poem-index li {
    margin: 0.8rem 0;
}

.poem-index a {
    color: #1c1c1e;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
}

.poem-index a:hover {
    background: rgba(28, 28, 30, 0.1);
    transform: translateX(-5px);
}

.publication {
    scroll-margin-top: 100px;
    margin-bottom: 8rem;
}

.publication h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.poem-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.poem-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.participation-item {
    margin-bottom: 5rem;
    scroll-margin-top: 100px;
}

.participation-header {
    margin-bottom: 2rem;
    text-align: right;
}

.participation-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.participation-header p {
    color: #666;
    font-size: 1.1rem;
}

.participation-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.participation-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
}

.participation-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) grayscale(100%);
    transition: filter 0.6s ease;
}

.participation-image-wrapper:hover img {
    filter: blur(0) grayscale(100%);
}

@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
        align-items: center;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .navbar {
        padding: 8px 15px;
    }
    
    .navbar-brand {
        margin-right: auto;
        width: auto;
        text-align: left;
    }
    
    .navbar-brand img {
        height: 85px;
        margin: 0;
    }
    
    .navbar-nav {
        flex-direction: row;
        justify-content: flex-end;
        width: auto;
        flex-wrap: nowrap;
    }
    
    .nav-item {
        margin: 0 4px;
        flex-shrink: 0;
    }
    
    .nav-link {
        text-align: center;
        padding: 8px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .contact-container {
        flex-direction: column;
    }

    .contact-form-container {
        justify-content: center;
    }

    .btn-outline-secondary {
        max-width: 100%;
    }

    .home-grid {
        grid-template-columns: 1fr;
        height: 100vh;
    }

    .images-container {
        display: none;
    }

    .video-container {
        width: 100vw;
        height: 100vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 30px 20px;
    }

    figure.effect-julia img {
        height: 350px;
    }

    .visual-modal-year {
        right: -50px;
        font-size: 1rem;
    }

    .content-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 1.5rem; }
    
    .navbar {
        padding: 8px 12px;
    }
    
    .nav-container {
        max-width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .navbar-brand {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 90px;
        margin: 0 auto;
    }
    
    .navbar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .nav-item {
        margin: 0 3px;
        flex-shrink: 0;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .contact-section {
        padding: 1rem;
    }

    .contact-container {
        gap: 2rem;
        justify-content: center;
    }

    .contact-form-container {
        justify-content: center;
    }

    .home-grid {
        grid-template-columns: 1fr;
        height: 100vh;
    }

    .images-container {
        display: none;
    }

    .video-container {
        width: 100vw;
        height: 100vh;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 15px;
    }

    figure.effect-julia img {
        height: 300px;
    }

    .visual-modal-content {
        max-width: 95%;
        padding: 0 10px;
    }

    .visual-modal-content img {
        max-height: 60vh;
    }

    .visual-modal-close {
        top: -35px;
        font-size: 35px;
    }

    .visual-modal-info h3 {
        font-size: 1.4rem;
    }

    .visual-modal-info p {
        font-size: 1rem;
    }

    .visual-modal-year {
        position: static;
        transform: none;
        margin-top: 15px;
        text-align: center;
    }

    .participation-images {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .participation-image-wrapper {
        animation: slideInUp 0.6s ease forwards;
        opacity: 0;
    }

    .participation-image-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .participation-image-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .participation-image-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

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

    .participation-image-wrapper img {
        filter: blur(4px) grayscale(100%);
    }

    .participation-image-wrapper:hover img {
        filter: blur(0) grayscale(100%);
    }

    .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .btn { font-size: 1.1rem; padding: 10px 20px; }
    
    .navbar {
        padding: 6px 8px;
    }
    
    .nav-container {
        max-width: 100%;
        flex-direction: column;
        gap: 6px;
    }
    
    .navbar-brand {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 80px;
        margin: 0 auto;
    }
    
    .navbar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 5px 6px;
        white-space: nowrap;
    }
    
    .nav-item {
        margin: 0 2px;
        flex-shrink: 0;
    }

    .contact-section {
        margin-top: 0;
        margin-bottom: 80px;
    }

    .contact-form-container {
        justify-content: center;
    }

    .contact-container {
        justify-content: center;
    }

    .content-section {
        margin-top: 20px;
        padding: 1rem;
        margin-bottom: 80px;
    }

    .gallery-section {
        margin-top: 20px;
        margin-bottom: 80px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        height: 100vh;
    }

    .images-container {
        display: none;
    }

    .video-container {
        width: 100vw;
        height: 100vh;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 10px;
    }

    figure.effect-julia img {
        height: 250px;
    }

    .visual-modal-content img {
        max-height: 55vh;
    }

    .visual-modal-close {
        top: -30px;
        font-size: 30px;
    }

    .visual-modal-info h3 {
        font-size: 1.2rem;
    }

    .visual-modal-info p {
        font-size: 0.9rem;
    }

    .visual-modal-year {
        position: static;
        transform: none;
        margin-top: 10px;
        text-align: center;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .gallery-grid,
    .content-section {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .btn-outline-secondary {
        max-width: 180px;
    }
}