.sections-page {
    overflow: hidden;
    display: block;
}

.sections-container {
    display: flex;
    height: 100vh;
    width: 100%;
    gap: 0;
}

.section-item {
    position: relative;
    flex: 1;
    height: 100%;
    transition: all 0.6s ease;
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* White dividing lines */
.section-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #333333;
    z-index: 3;
}

.section-item:last-child::after {
    display: none;
}

/* Dark overlay */
.section-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: all 0.6s ease;
    z-index: 1;
}

/* Hover state */
.section-item:hover {
    flex: 2;
}

.section-item:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

/* First section (Store) default state */
.section-item:first-child {
    flex: 2;
}

.section-item:first-child::before {
    background: rgba(0, 0, 0, 0.4);
}

.section-item:first-child .section-description {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    animation: typing 1s steps(30) forwards;
}

/* Reset first section when hovering others, but not when hovering first section */
.sections-container:hover .section-item:first-child:not(:hover) {
    flex: 1;
}

.sections-container:hover .section-item:first-child:not(:hover)::before {
    background: #1a1a1a;
}

.sections-container:hover .section-item:first-child:not(:hover) .section-description {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: all 0.5s ease;
    animation: none;
}

@keyframes titleSlideUpAndIn {
    0% {
        opacity: 1;
        transform: translateY(-50%);
        clip-path: inset(0 0 0 0);
    }
    40% {
        opacity: 1;
        transform: translateY(-100%);
        clip-path: inset(0 0 100% 0);
    }
    40.1% {
        opacity: 1;
        transform: translateY(20%);
        clip-path: inset(100% 0 0 0);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%);
        clip-path: inset(0 0 0 0);
    }
}

/* Text styles */
.section-item h2 {
    position: relative;
    z-index: 1;
    color: #f5f5f5;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.section-item:hover h2 {
    animation: titleSlideUpAndIn 0.7s ease forwards;
}

/* Base description styles */
.section-description {
    position: absolute;
    z-index: 1;
    bottom: 40px;
    left: 40px;
    max-width: 280px;
    color: #f5f5f5;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    width: auto;
}

/* Hover state */
.section-item:hover .section-description {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    animation: typing 1s steps(30) forwards;
    animation-delay: 0.3s;
}

/* First section default state */
.section-item:first-child .section-description {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    animation: typing 1s steps(30) forwards;
}

/* Reset first section when hovering others */
.sections-container:hover .section-item:first-child:not(:hover) .section-description {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: all 0.5s ease;
    animation: none;
}

@keyframes typing {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .sections-container {
        flex-direction: column;
    }

    .section-item::after {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
    }

    .section-item h2 {
        font-size: 1.8rem;
        left: 20px;
    }

    .section-description {
        font-size: 0.9rem;
        bottom: 20px;
        left: 20px;
        max-width: 220px;
    }
}

/* Add this to your existing CSS */
.section-indicator {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 2;
    color: #f5f5f5;
    font-family: 'Instrument Sans', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.coordinates {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.section-item:hover .section-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* First section default state */
.section-item:first-child .section-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Reset first section when hovering others */
.sections-container:hover .section-item:first-child:not(:hover) .section-indicator {
    opacity: 0;
    transform: translateY(20px);
}

.view-button {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-button::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.view-button:hover::after {
    transform: translateX(5px);
}

.reading-time {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Add these media queries at the end of your sections.css file */
@media screen and (max-width: 768px) {
    .sections-container {
        flex-direction: column;
    }

    .section-item {
        width: 100%;
        height: 22vh;
        flex: none !important;
        opacity: 1;
    }

    .section-item:first-child,
    .section-item:hover,
    .sections-container:hover .section-item:first-child {
        flex: none !important;
    }

    .section-item::before {
        background: rgba(0, 0, 0, 0.4) !important;
    }

    /* Show only title and coordinates */
    .section-item h2,
    .section-item .section-indicator {
        opacity: 1;
        transform: none;
        clip-path: none;
        animation: none !important;
    }

    /* Hide description completely on mobile */
    .section-description {
        display: none;
    }

    /* Adjust title position for better mobile layout */
    .section-item h2 {
        font-size: 1.4rem;
        left: 20px;
    }

    /* Adjust coordinates position */
    .section-indicator {
        top: 15px;
        right: 15px;
    }
}

@media screen and (max-width: 480px) {
    .section-item {
        height: 22vh;
    }
} 