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

body {
    font-family: 'Michroma', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: white;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.scroll-container {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.scroll-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 50px;
    pointer-events: auto;
}

.content {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    max-width: 600px;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: #f8f8f8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-style: italic;
    font-weight: 600;
    line-height: 2;
}

h3 a {
    color: inherit;
}

h3 a:hover {
    color: inherit;
}

p {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.5;
}

p a {
    color: inherit;
    text-decoration: underline;
}

p a:hover {
    color: inherit;
    text-decoration: underline;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: #ffffff;
    transform: scale(1.5);
}

/* Camera Info Display */
.camera-info {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(10px);
    min-width: 350px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.camera-info-header {
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

.camera-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h3 {
        font-style: italic;
    }
    p {
        font-size: 1rem;
    }
    
    .content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .scroll-section {
        padding-left: 20px;
    }
    

    
    .camera-info {
        top: 10px;
        right: 10px;
        min-width: 240px;
        font-size: 11px;
        padding: 8px;
    }
    
    .info-value {
        max-width: 120px;
    }
}

/* KPF Logo */
.kpf-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.kpf-logo:hover {
    transform: scale(1.1);
}

.kpf-logo img {
    width: 80px;
    height: auto;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.kpf-logo:hover img {
    filter: brightness(1);
}

/* Hover Dialog Styles */
.hover-dialog {
    position: fixed;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Water Dialog Styles */
.water-dialog {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Michroma', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
    border: 2px solid rgba(0, 212, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.water-dialog::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
}

.water-dialog::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 212, 255, 0.6);
    z-index: -1;
}

/* Chart Content Styles */
.chart-content {
    margin-top: 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.water-chart-container {
    width: 100%;
    height: 250px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px;
}

/* Responsive design for charts */
@media (max-width: 768px) {
    .chart-content {
        margin-top: 20px;
        padding: 15px;
    }
    
    .water-chart-container {
        height: 300px;
    }
}

/* 
.hover-dialog::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(107, 107, 107, 0.9);
} */

/* Image Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin-left: 20px;
    width: 600px;
    height: 600px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 0.2rem solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Update section4 layout to accommodate image grid */
#section4 {
    justify-content: flex-start;
    padding-right: 50px;
    position: relative;
}

#section4 .content {
    max-width: 600px;
}

#section4 .image-grid {
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0;
}

/* Vertical layout for smaller screens */
@media (max-width: 1499px) {
    #section4 {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding-right: 20px;
    }
    
    #section4 .content {
        max-width: 600px;
        text-align: center;
    }
    
    #section4 .image-grid {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-left: 0;
    }
}

/* Responsive design for image grid */
@media (max-width: 1660px) and (min-width: 1200px) {
    .image-grid {
        width: 500px;
        height: 500px;
        gap: 12px;
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .image-grid {
        width: 400px;
        height: 400px;
        gap: 10px;
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .image-grid {
        width: 350px;
        height: 350px;
        gap: 8px;
    }
}

@media (max-width: 599px) {
    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        height: 400px;
        gap: 10px;
    }
    
    #section4 {
        flex-direction: column;
        justify-content: center;
        padding-right: 20px;
    }
    
    #section4 .content {
        max-width: 100%;
    }
}

/* Responsive KPF logo */
@media (max-width: 768px) {
    .kpf-logo {
        bottom: 15px;
        right: 15px;
    }
    
    .kpf-logo img {
        width: 60px;
    }
} 