/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Palette */
:root {
    --color-darkest: #2A2420;
    --color-dark: #3A3228;
    --color-medium-dark: #4A3E30;
    --color-medium: #5A4A38;
    --color-muted: #6A7A58;
    --color-tan: #7A6E5A;
    --color-accent: #8A9A78;
    --color-gold: #B8A060;
    --color-light: #F0E8D8;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #F0E8D8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2A2420;
}

/* Scroll Container */
.scroll-container {
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Scroll Track */
.scroll-track {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: max-content;
}

/* Panel Styles */
.panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #F0E8D8;
    overflow: hidden;
    position: relative;
}

.panel-1 {
    width: 100vw;
}

.panel-2 {
    width: 150vw;
    background: linear-gradient(to right, #F0E8D8 0%, #F5EFE3 100%);
    border-left: 2px solid #6A7A58;
}

.panel-3 {
    width: 130vw;
    background: linear-gradient(to right, #F5EFE3 0%, #F0E8D8 100%);
    border-left: 2px solid #5A4A38;
}

.panel-4 {
    width: 120vw;
    background-color: #F0E8D8;
}

.panel-content {
    width: 95%;
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* Panel 1 Styles */
.panel-1 .panel-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-family: 'Rokkitt', Georgia, serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    color: #3A3228;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-right: 3rem;
    flex: 0 0 auto;
    line-height: 1.1;
}

.geometric-composition {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.composition-svg {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
    filter: drop-shadow(0 4px 6px rgba(42, 36, 32, 0.1));
    animation: fadeInComposition 1.2s ease-out forwards;
}

@keyframes fadeInComposition {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Panel 2 - Specimen Grid */
.specimen-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 2rem 0;
}

.specimen-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #8A9A78;
    border-left: 4px solid #B8A060;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideInCard 0.8s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.15s);
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.specimen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(42, 36, 32, 0.15);
    border-left: 4px solid #6A7A58;
}

.card-label {
    font-family: 'Rokkitt', Georgia, serif;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 700;
    color: #3A3228;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.card-composition {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(42, 36, 32, 0.1));
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    color: #4A3E30;
    line-height: 1.6;
    font-weight: 400;
}

/* Section Headers */
.section-header {
    font-family: 'Rokkitt', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    color: #3A3228;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInHeader 0.8s ease-out;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Panel 3 - About Section */
.panel-3 .panel-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.info-title {
    font-family: 'Rokkitt', Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: #3A3228;
    letter-spacing: 0.05em;
}

.info-block p {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: #4A3E30;
    line-height: 1.8;
    font-weight: 400;
}

.composition-2 {
    margin-top: 2rem;
    width: 300px;
    height: 250px;
}

/* Panel 4 - Catalog Section */
.catalog-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.catalog-text {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #4A3E30;
    line-height: 1.8;
    max-width: 500px;
    font-weight: 400;
}

.footer-composition {
    width: 250px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #8A9A78;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    color: #5A4A38;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Responsive Adjustments for smaller viewports */
@media (max-width: 768px) {
    .scroll-track {
        width: max-content;
    }

    .panel {
        width: 100vw !important;
    }

    .panel-1 .panel-content {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .specimen-grid {
        gap: 1.5rem;
        justify-content: center;
    }

    .specimen-card {
        flex: 0 0 220px;
    }

    .composition-2,
    .footer-composition {
        width: 100%;
        max-width: 250px;
    }
}

/* Animations and Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.panel {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll snap behavior */
.scroll-container {
    scroll-snap-type: x mandatory;
}

.panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Color accent styles */
.panel-4 {
    background: linear-gradient(to right, #F0E8D8 0%, rgba(138, 154, 120, 0.05) 100%);
    border-left: 2px solid #B8A060;
}

/* Additional accent colors for visual hierarchy */
.info-block {
    padding: 1.5rem;
    background: rgba(122, 110, 90, 0.02);
    border-left: 3px solid #6A7A58;
}

.catalog-block {
    padding: 1.5rem;
    background: rgba(184, 160, 96, 0.03);
    border-top: 2px solid #5A4A38;
}
