body, html {
    margin: 0; padding: 0; font-family: 'Source Sans Pro', sans-serif; overflow: hidden; scroll-behavior: smooth;
}
body, html {background:#000;}
.custom-link {
    color: inherit; text-decoration: none; cursor: pointer;
}
header {
    position: fixed; top: 0; left: 0; width: 80px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; background-color: #fff; z-index: 10; padding: 20px 0; align-items: center; border-right: 0.1px solid black; transition: all 0.3s ease;
}
header .logo {
    text-align: center; margin-bottom: 20px;
}
header .logo img {
    max-width: 60px; height: auto; transition: all 0.3s ease;
}
.menu {
    display: flex; flex-direction: column; align-items: center; margin-bottom: 20px;
}
.menu a {
    color: black; text-decoration: none; margin: 20px 0; writing-mode: vertical-rl; transform: rotate(180deg); transition: color 0.3s ease; font-size: 1vw; position: relative;
}
.menu a.active::after, .menu a:hover::after {
    content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 2px; background-color: black;
}
.mobile-menu {
    display: none; flex-direction: row; width: 80%; padding: 0 10px; margin-bottom: 0;
}
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .mobile-menu { display: flex; }
    .mobile-menu a {
        position: relative; writing-mode: horizontal-tb; transform: none; margin: 0 12px; font-size: 14px; text-decoration: none; color: #000;
    }
    .mobile-menu a.active::after, .mobile-menu a:hover::after {
        content: ""; position: absolute; top: -5px; left: 0; width: 100%; height: 1px; background-color: black;
    }
}
main {
    display: grid; grid-template-columns: repeat(8, 100vw); height: 100vh; overflow-x: hidden; overflow-y: hidden; scroll-behavior: smooth;
}
#home {
    position: relative; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #fff; overflow: hidden;
}
.home-image {
    height: auto; object-fit: cover; object-position: top; max-width: 80%; max-height: 80vh;
}
@media (max-width: 768px) {
    #home { height: 100vh; }
    .home-image { width: 100%; height: auto; object-fit: cover; object-position: top; }
}
.image-container {
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.about-image-container {
    position: relative; width: 70%; max-width: 650px; margin: 20px auto; overflow: hidden; border-radius: 10px;
}
.about-image {
    width: 100%; height: auto; object-fit: cover; object-position: top; border-radius: inherit; display: block;
}
.about-image-container .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s ease; display: flex; justify-content: center; align-items: center; border-radius: inherit; z-index: 10;
}
.about-image-container:hover .overlay {
    opacity: 1;
}
.overlay-button {
    font-size: 1.2vw; color: #ffffff; background-color: transparent; padding: 10px 20px; border: 2px solid #ffffff; border-radius: 25px; text-decoration: none; transition: all 0.3s ease;
}
.overlay-button:hover {
    background-color: #ffffff; color: #000000;
}
@media (max-width: 768px) {
    .about-image-container { margin: 10px auto; max-width: 100%; }
    .about-image { width: 100%; height: auto; object-fit: cover; object-position: top; }
}
.section {
    position: relative; width: 100vw; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 10px 20px; box-sizing: border-box; background: #FFFFFF;
}
.section-content {
    width: 100%; max-width: 1100px; text-align: center; margin: 0 auto; height: 100%;
}
.section-title {
    font-family: 'Alegreya Sans', sans-serif; font-weight: 700; font-size: 38px; color: #000000; margin-bottom: 10px; margin-top: 80px;
}
.section-date, .section-ty, .section-description, .section-stats {
    font-weight: 400; font-size: 20px; line-height: 25px; text-align: center; color: #000000;
}
@media (max-width: 768px) {
    .section { padding: 20px 10px; }
}
.project-image-container {
    position: relative; width: 100%; max-width: 450px; margin: 20px auto; overflow: hidden; border-radius: 10px;
}
.project-image {
    width: 100%; height: auto; object-fit: cover; object-position: top; display: block; border-radius: inherit;
}
.project-image-container .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s ease; display: flex; justify-content: center; align-items: center; border-radius: inherit; z-index: 10;
}
.project-image-container:hover .overlay {
    opacity: 1;
}
@media (max-width: 768px) {
    .project-image-container { margin: 10px auto; max-width: 100%; }
    .project-image { width: 100%; height: auto; object-fit: cover; object-position: top; }
}
.image-group {
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; width: 100%; margin: 0 auto;
}
.image-group .project-image-container {
    flex: 1 1 calc(33.333% - 40px); max-width: calc(33.333% - 40px); height: auto; overflow: hidden; border-radius: 10px;
}
.image-group img {
    width: 100%; height: auto; object-fit: cover; object-position: top; transition: transform 0.3s ease; border-radius: inherit;
}
.image-group img:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .image-group { flex-direction: column; gap: 15px; }
    .image-group .project-image-container { max-width: 100%; }
}
@media (max-width: 768px) {
    header {
        width: 100%; height: auto; flex-direction: row; justify-content: space-between; padding: 10px; border-bottom: 0.1px solid black;
    }
    header .logo { text-align: left; }
    header .logo img { max-width: 40px;}
    main { display: block; overflow-y: auto; padding: 0; grid-template-columns: none; }
    .section { min-height: 10vh; width: 100%; padding: 20px 15px; }
    .section-title { font-size: 6vw; }
    .project-image-container, .project-image { width: 100%; }
    .overlay-button { font-size: 4vw; padding: 5px 10px; }
}
