/* Basic Reset & Font */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: #5c5c8a #2e2e46; }

/*
 * ===================================================================
 * THE DEFINITIVE CLICK-THROUGH AND LAYERING LOGIC
 * ===================================================================
 */

/* 1. Body and Canvas: The foundation. Body is transparent and ignores clicks,
      passing them to the canvas, which is clickable. */
body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
    background-color: transparent;
    pointer-events: none;
}
#main-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #0c0a1d;
    pointer-events: auto;
}

/* 2. Content Wrapper: Sits on top, but its empty space is CLICK-THROUGH.
      All children will inherit this property. */
#content-wrapper {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* 3. FINAL FIX: Re-enable clicks ONLY for the specific end-point elements
      that the user needs to interact with. The containers remain click-through. */
h1, .panel, #hit-counter, .project-links a {
    pointer-events: auto;
}

/*
 * ===================================================================
 */


/* Main Layout */
.site-header { text-align: center; padding: 5rem 1rem 3rem; }
.site-header h1 { font-size: 4rem; font-weight: 700; letter-spacing: -2px; }
.content-container { max-width: 1400px; margin: 0 auto; padding: 0 1rem 4rem; }
.panels-container { display: flex; gap: 2rem; width: 100%; align-items: flex-start; justify-content: center; }
.panel {
    flex: 1; max-width: 450px; /* Constrain panel width */ min-width: 300px;
    background: rgba(20, 16, 45, 0.5); border-radius: 16px; padding: 2rem;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); max-height: 65vh; overflow-y: auto;
}
.panel h2 { font-weight: 600; font-size: 1.5rem; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }

/* ALL OTHER STYLES ARE UNCHANGED */
#contact-search { width: 100%; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.2); color: #fff; font-size: 1rem; margin-bottom: 1.5rem; }
#contact-search:focus { outline: none; border-color: rgba(90, 100, 255, 0.8); }
.social-list { display: flex; flex-direction: column; gap: 1rem; }
.social-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; text-decoration: none; color: #e0e0e0; background: rgba(255, 255, 255, 0.05); transition: background 0.3s ease; }
.social-item:hover { background: rgba(90, 100, 255, 0.5); }
.social-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.social-item div { display: flex; flex-direction: column; }
.social-item strong { font-weight: 500; font-size: 1rem; }
.social-item span { font-size: 0.8rem; color: #a0a0c0; }
.project-list { display: flex; flex-direction: column; gap: 1.5rem; }
.project-item { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.project-item:last-child { border-bottom: none; }
.project-item h3 { margin-bottom: 0.75rem; font-weight: 600; color: #fff; }
.project-item p { color: #b0b0d0; line-height: 1.6; }
.project-links { margin-top: 1rem; display: flex; gap: 1rem; }
.project-links a { color: #adadea; text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.project-links a:hover { text-decoration: underline; }
.site-footer { position: fixed; bottom: 0; left: 0; width: 100%; text-align: center; padding: 1rem; z-index: 100; }
#hit-counter { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; }
.counter-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2rem; color: #FFFFFF; text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px rgba(180, 170, 255, 0.8), 0 0 70px rgba(180, 170, 255, 0.7); }
.eye-icon { width: 2.5rem; height: auto; fill: #FFFFFF; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px rgba(180, 170, 255, 0.7)); }
@media (max-width: 900px) { .panels-container { flex-direction: column; } .panel { max-height: none; width: 100%; max-width: 100%; } }
