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

body {
    font-family: "Courier New", monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.95);
}

.logo {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::before,
.nav-link:hover::before {
    content: "[ ";
    color: #00ff88;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: " ]";
    color: #00ff88;
}

/* Main */
.main {
    padding-top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding: 0 40px;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.hero-title {
    font-size: clamp(80px, 15vw, 220px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 60px;
}

.hero-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
}

.meta-left {
    display: flex;
    align-items: center;
}

.meta-center {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 0 40px;
}

.meta-right {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 150px;
    align-items: center;
}

.meta-name {
    font-size: clamp(40px, 7.5vw, 110px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.9;
    transition: opacity 0.3s ease;

    column-count: 2;
    column-gap: 2rem;
}

.meta-info,
.meta-location {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.time {
    font-family: "Courier New", monospace;
}

.project-type {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 1px;
}

.project-year {
    font-size: 20px;
    font-weight: 600;
}

/* Projects Gallery */
.projects-gallery {
    display: flex;
    gap: 20px;
    padding: 0 40px 0 40px;
    overflow-x: hidden;
    margin-top: auto;
    justify-content: space-between;
    align-items: flex-end;
}

.projects-gallery::-webkit-scrollbar {
    height: 8px;
}

.projects-gallery::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.projects-gallery::-webkit-scrollbar-thumb {
    background: #333;
}

.project-item {
    flex: 1;
    max-width: calc((100% - 80px) / 5);
    cursor: pointer;
    transition: all 0.4s ease;
    filter: blur(0px);
    opacity: 1;
    position: relative;
    transform: translateY(0);
}

.projects-gallery:hover .project-item {
    filter: blur(8px);
    opacity: 0.4;
    transform: translateY(20px);
}

.projects-gallery .project-item:hover {
    transform: translateY(-20px) scale(1.05);
    filter: blur(0px) !important;
    opacity: 1 !important;
    z-index: 10;
}

.project-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-item:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-num {
    font-size: 12px;
}

.project-view {
    font-size: 11px;
    transition: opacity 0.3s;
    opacity: 0;
}

.project-item:hover .project-view {
    opacity: 1;
}

.project-view:hover {
    opacity: 0.6;
}

/* Page Section Visibility */
.page-section {
    display: none;
}

.page-section.active {
    display: flex;
}

/* INFO Section */
.info-section {
    flex: 1;
    padding: 0 40px;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-section.active {
    display: flex;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(80px, 10vw, 180px);
    width: 100%;
    max-width: none;
    padding: 0;
    align-items: flex-start;
}

.info-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.info-title {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-intro {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.info-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.info-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    padding-left: 14px;
    margin-top: 6px;
}

.info-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
}

.info-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.3s;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-link:hover {
    opacity: 0.6;
}

.info-link-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-link-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.info-link-value {
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Archive Section */
.archive-section {
    flex: 1;
    padding: 0 40px;
    display: none;
    overflow: hidden;
}

.archive-section.active {
    display: flex;
}

.archive-grid {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-rows::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 0;
    z-index: 2;
    pointer-events: none;
    align-self: center;
    margin-bottom: -10px;
}

.timeline-label,
.timeline-scroll {
    font-size: 14px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-align: center;
}

.timeline-scroll {
    opacity: 0.8;
}

.timeline-date {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0a0a0a;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1.5px;
    min-width: 120px;
}

.timeline-floating {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.timeline-day {
    display: block;
    font-size: 22px;
    letter-spacing: 3px;
}

.timeline-month {
    display: block;
    margin-top: 2px;
}

.timeline-year {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

.archive-rows {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.archive-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    column-gap: clamp(60px, 8vw, 160px);
    align-items: center;
    position: relative;
}

.archive-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ff88;
    border: 2px solid #0a0a0a;
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.12);
}

.node-date {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.archive-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.35s ease;
    filter: none;
    opacity: 1;
}

.archive-card.dim {
    filter: blur(4px);
    opacity: 0.35;
}

.archive-card.active {
    transform: translateY(-10px);
    filter: none;
    opacity: 1;
}

.archive-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    overflow: hidden;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-card:hover .archive-thumb img,
.archive-card.active .archive-thumb img {
    transform: scale(1.06);
}

.archive-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archive-title {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
}

.archive-author {
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Project Detail Modal */
body.modal-open {
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
}

.modal-content {
    position: relative;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 12px;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.modal-close:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.modal-body {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 32px;
    padding: 48px;
    align-items: start;
    height: 100%;
    box-sizing: border-box;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-year {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.modal-title {
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0;
}

.modal-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    text-transform: uppercase;
}

.modal-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 6px 0 0;
}

.modal-right {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 6px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-gallery img {
    width: 100%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    object-fit: cover;
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 60px);
    }

    .modal-right {
        max-height: none;
    }
}

/* Detail Page */
body.detail-page-body {
    overflow-y: auto;
    height: auto;
}

.detail-page {
    padding: 120px 40px 80px;
    min-height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
    box-sizing: border-box;
}

.detail-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 32px;
    align-items: start;
}

.detail-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-year {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.detail-title {
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0;
}

.detail-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-transform: uppercase;
}

.detail-description {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 4px 0 8px;
}

.detail-back {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #00ff88;
    text-decoration: none;
}

.detail-back:hover {
    opacity: 0.8;
}

.detail-demo {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #00ff88;
    text-decoration: none;
}

.detail-demo:hover {
    opacity: 0.8;
}

.detail-right {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    padding: 0 30px;
    position: relative;
}

.detail-right-scroll {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding-right: 6px;
    flex: 1 1 auto;
}

.detail-right img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    object-fit: contain;
}

.detail-scroll-hint {
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    padding: 60px 0 18px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.92));
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.detail-scroll-hint.hidden {
    opacity: 0;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-right {
        max-height: none;
    }

    .detail-right img {
        height: auto;
    }

    .detail-scroll-hint {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 16px 24px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .nav-link {
        min-width: auto;
    }

    .projects-gallery {
        padding: 0 24px 24px;
        gap: 18px;
        overflow-x: auto;
    }

    .project-item {
        max-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    .archive-grid {
        height: auto;
        padding: 20px 20px 80px;
    }

    .archive-row {
        column-gap: 48px;
    }

    .detail-page {
        padding: 100px 24px 64px;
    }

    .detail-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 24px;
    }

    .detail-right {
        max-height: calc(100vh - 260px);
    }
}

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

    .main {
        height: auto;
        padding-top: 80px;
    }

    .hero-section {
        padding: 0 24px 20px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .meta-right {
        position: static;
        gap: 20px;
        flex-wrap: wrap;
    }

    .projects-gallery {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        padding: 0 20px 24px;
    }

    .project-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .archive-section {
        padding: 0 20px;
    }

    .archive-grid {
        height: auto;
        padding: 10px 0 60px;
        overflow: visible;
    }

    .archive-rows::before {
        display: none;
    }

    .timeline-rail {
        position: static;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
        margin-bottom: 0;
    }

    .timeline-date {
        min-width: auto;
        padding: 10px 12px;
    }

    .archive-rows {
        gap: 30px;
    }

    .archive-row {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 18px;
    }

    .timeline-node {
        flex-direction: row;
        justify-content: flex-start;
    }

    .archive-side {
        flex-direction: column;
    }

    .detail-page {
        padding: 90px 20px 60px;
    }

    .detail-layout {
        gap: 18px;
    }

    .detail-right {
        padding: 0 12px;
        max-height: none;
    }
}

/* Footer */
.footer-main {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.footer-main.active {
    display: flex;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-center {
    flex: 1;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-section {
        padding: 0 20px;
        min-height: calc(100vh - 400px);
    }

    .hero-title {
        font-size: clamp(50px, 12vw, 100px);
        margin-bottom: 40px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .meta-right {
        flex-direction: column;
        gap: 20px;
    }

    .projects-gallery {
        padding: 20px;
        gap: 15px;
    }

    .project-item {
        width: 260px;
    }

    .project-thumbnail {
        height: 200px;
    }

    .project-info {
        font-size: 11px;
        margin-top: 12px;
    }

    .project-num {
        font-size: 11px;
    }

    .project-view {
        font-size: 10px;
    }
}
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: block;
    pointer-events: all;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.page-loader__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.page-loader__sweep {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0.25)
    );
    animation: pageLoaderSweep 1.25s linear infinite;
}

@keyframes pageLoaderSweep {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(300%);
    }
}

.page-loader__progress {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: #fff;
    font-size: 96px;
    letter-spacing: 1px;
    line-height: 1;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-shutter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.loader-shutter-top,
.loader-shutter-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #1a1a1a;
    animation: loaderShutter 2s ease-in-out infinite;
}

.loader-shutter-top {
    top: 0;
    transform-origin: top;
}

.loader-shutter-bottom {
    bottom: 0;
    transform-origin: bottom;
}

@keyframes loaderShutter {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0);
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.loader-logo {
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    padding: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.loader-logo .logo-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: var(--font-sans);
}

.loader-text {
    font-size: 14px;
    letter-spacing: 3px;
    font-family: var(--font-sans);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

body.legacy {
    font-family: var(--font-serif);
    background: var(--color-light);
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 100;
}

.logo-container {
    margin-bottom: 60px;
}

.logo {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    padding: 8px;
    cursor: pointer;
}

.logo-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

.nav-item {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--color-white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 400;
    transition: opacity var(--transition-speed);
    font-family: var(--font-sans);
    cursor: pointer;
}

.nav-item:hover {
    opacity: 0.7;
}

.home-icon {
    color: var(--color-white);
    margin-top: auto;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.home-icon:hover {
    opacity: 0.7;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    position: relative;
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

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

/* ========================================
   TOP NAVIGATION
   ======================================== */
.top-nav {
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    gap: 30px;
    z-index: 10;
}

.top-nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    transition: opacity var(--transition-speed);
    font-family: var(--font-sans);
}

.top-nav-link:hover,
.top-nav-link.active {
    opacity: 0.7;
}

.top-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-white);
}

/* ========================================
   HOME PAGE - HERO SECTION
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-image.current {
    z-index: 2;
}

.hero-image.next-image {
    z-index: 3;
    display: block !important;
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* Slide Transitions */
.hero-image.slide-left {
    animation: slideFromRight 1s ease-in-out forwards;
}

.hero-image.slide-right {
    animation: slideFromLeft 1s ease-in-out forwards;
}

.hero-image.slide-up {
    animation: slideFromBottom 1s ease-in-out forwards;
}

.hero-image.slide-down {
    animation: slideFromTop 1s ease-in-out forwards;
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideFromTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Progress Line */
.progress-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fff 0%, #ddd 50%, #fff 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: width 0.1s linear;
}

.progress-bar.animating {
    transition: width 5s linear;
    width: 100%;
}

.progress-bar.reset {
    transition: none;
    width: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px;
    z-index: 4;
    pointer-events: none;
}

.hero-overlay * {
    pointer-events: auto;
}

.hero-content {
    max-width: 800px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.category,
.date {
    color: var(--color-white);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.hero-title {
    color: var(--color-white);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    transition: opacity 0.3s ease;
}

.next-btn {
    position: absolute;
    bottom: 120px;
    right: 100px;
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 15px 30px;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-speed);
    font-family: var(--font-sans);
    z-index: 5;
}

.next-btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.next-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.page-content {
    padding: 80px 100px;
    background: var(--color-white);
    min-height: 100vh;
}

.page-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 60px;
    color: var(--color-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    max-width: 500px;
}

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

.info-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.info-value {
    font-size: 14px;
    color: #666;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin: 40px 0 20px;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color var(--transition-speed);
}

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

.submit-btn {
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    padding: 12px 40px;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: var(--font-sans);
    align-self: flex-start;
    transition: opacity var(--transition-speed);
}

.submit-btn:hover {
    opacity: 0.8;
}

.contact-image {
    height: 600px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* ========================================
   PACKAGES PAGE
   ======================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.package-card {
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    background: var(--color-white);
    transition:
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
    border: 2px solid var(--color-dark);
}

.package-tier {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.package-price {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.package-features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.package-features li {
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-sans);
}

.package-note {
    font-size: 12px;
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
}

.package-btn {
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: opacity var(--transition-speed);
}

.package-btn:hover {
    opacity: 0.8;
}

/* ========================================
   PORTFOLIO PAGE
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
    filter: grayscale(30%);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 15px;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
    font-family: var(--font-sans);
    transform: translateY(100%);
    transition: transform var(--transition-speed);
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    max-width: 700px;
}

.about-intro {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.about-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    font-family: var(--font-sans);
}

.quote {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    border-left: 3px solid var(--color-dark);
    padding-left: 30px;
    margin: 40px 0;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

.quote cite {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 15px;
    font-style: normal;
    color: #666;
}

.about-image {
    height: 600px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: absolute;
    bottom: 30px;
    right: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    color: var(--color-white);
    font-family: var(--font-sans);
    z-index: 10;
}

.social-links {
    display: flex;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 1px;
}

.social-link {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.social-link:hover {
    opacity: 0.7;
}

.divider {
    color: var(--color-white);
}

.copyright {
    font-size: 10px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 60px;
    }

    .page-content {
        padding: 70px 80px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
    }

    .page-title {
        font-size: 42px;
    }

    .contact-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-image,
    .about-image {
        height: 400px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

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

    .page-content {
        padding: 60px 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 60px;
    }

    body {
        font-size: 14px;
    }

    /* Sidebar adjustments */
    .sidebar {
        width: 60px;
        padding: 20px 0;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 8px;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .sidebar-nav {
        gap: 30px;
    }

    .nav-item {
        font-size: 10px;
    }

    /* Main content */
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    /* Hero section */
    .hero-overlay {
        padding: 0 30px;
        justify-content: flex-end;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .category,
    .date {
        font-size: 10px;
    }

    /* Top navigation */
    .top-nav {
        top: 15px;
        right: 20px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .top-nav-link {
        font-size: 11px;
    }

    /* Next button */
    .next-btn {
        bottom: 80px;
        right: 30px;
        padding: 12px 24px;
        font-size: 10px;
    }

    /* Footer */
    .footer {
        bottom: 20px;
        right: 30px;
    }

    .social-links {
        font-size: 10px;
    }

    .copyright {
        font-size: 9px;
    }

    /* Page content */
    .page-content {
        padding: 50px 30px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* Contact page */
    .contact-container {
        gap: 30px;
    }

    .form-title {
        font-size: 16px;
        margin: 30px 0 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 10px 30px;
        font-size: 11px;
    }

    .contact-image {
        height: 300px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 13px;
    }

    /* Packages page */
    .package-card {
        padding: 30px 20px;
    }

    .package-tier {
        font-size: 13px;
    }

    .package-price {
        font-size: 32px;
    }

    .package-features li {
        font-size: 12px;
        padding: 8px 0;
    }

    .package-note {
        font-size: 11px;
    }

    .package-btn {
        padding: 10px 25px;
        font-size: 11px;
    }

    /* Portfolio page */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-caption {
        font-size: 11px;
        padding: 12px;
    }

    /* About page */
    .about-intro {
        font-size: 16px;
    }

    .about-description {
        font-size: 13px;
    }

    .quote {
        font-size: 14px;
        padding-left: 20px;
    }

    .quote cite {
        font-size: 11px;
    }

    .about-image {
        height: 350px;
    }

    /* Progress line */
    .progress-line {
        height: 3px;
    }
}

@media (max-width: 480px) {
    :root {
        --sidebar-width: 50px;
    }

    /* Sidebar */
    .sidebar {
        width: 50px;
        padding: 15px 0;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 7px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .sidebar-nav {
        gap: 25px;
    }

    .nav-item {
        font-size: 9px;
    }

    .home-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Main content */
    .main-content {
        margin-left: 50px;
        width: calc(100% - 50px);
    }

    /* Hero */
    .hero-overlay {
        padding: 0 20px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .category,
    .date {
        font-size: 9px;
    }

    /* Top nav */
    .top-nav {
        top: 10px;
        right: 15px;
        gap: 10px;
    }

    .top-nav-link {
        font-size: 10px;
    }

    /* Next button */
    .next-btn {
        bottom: 60px;
        right: 20px;
        padding: 10px 20px;
        font-size: 9px;
        gap: 10px;
    }

    .next-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Footer */
    .footer {
        bottom: 15px;
        right: 20px;
    }

    .social-links {
        font-size: 9px;
        gap: 8px;
    }

    .copyright {
        font-size: 8px;
    }

    /* Page content */
    .page-content {
        padding: 40px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Contact */
    .form-title {
        font-size: 14px;
    }

    .contact-image,
    .about-image {
        height: 250px;
    }

    /* Packages */
    .package-card {
        padding: 25px 15px;
    }

    .package-price {
        font-size: 28px;
    }

    /* About */
    .about-intro {
        font-size: 15px;
    }

    .quote {
        font-size: 13px;
    }

    /* Progress line */
    .progress-line {
        height: 2px;
    }

    /* Loader */
    .loader-logo {
        width: 60px;
        height: 60px;
    }

    .loader-logo .logo-text {
        font-size: 10px;
    }

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

/* ========================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-overlay {
        padding: 0 40px;
        justify-content: center;
    }

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

    .next-btn {
        bottom: 40px;
    }

    .footer {
        bottom: 10px;
    }

    .top-nav {
        top: 10px;
    }
}
