/* --- 1. Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #fdf5e6; /* Sandy Off-White */
    color: #1e335c; /* Muted Ocean Blue */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-height: 140vh; /* Breezy length */
    display:flex;
    flex-direction: column;
    text-align: center;
}

/* --- 2. Fixed Background Video --- */
.video-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
#bgVideo { width: 100%; height: 100%; object-fit: cover; }

.beachy-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Warm golden hour haze to blend the video and page */
    background: rgba(255, 248, 231, 0.4);
    backdrop-filter: blur(2px);
}

/* --- 3. Header --- */
.site-header {
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000; /* Stays on top */
}
.top-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.logo { font-family: 'Ballet', cursive; font-size: 40px; }
.top-nav a { text-decoration: none; color: #0a3c52; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; }

/* --- 4. Content Spacing --- */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px; /* Quote just under header */
}
.quote-box {
    text-align: center;
    margin-bottom: 220px; /* Space between quote and the ring */
}
.quote { font-family: 'Ballet', cursive; font-size: 30px; animation: fadeIn 1.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. The Circular Ring --- */
.ring-container {
    position: relative;
    width: 100%;
    height: 550px; /* Anchors the space for the circle */
    display: flex;
    justify-content: center;
    align-items: center;
}
.subject-ring { position: relative; width: 0; height: 0; }

/* --- 6. FLOATING PNG ITEMS --- */
.item {
    position: absolute;
    width: 130px; /* Smaller elegant size */
    text-decoration: none;
    opacity: 0; /* Fades in via JS */
    
    /* Radial Math Spacing */
    --radius: 270px;
    --angle: calc(var(--i) * (360deg / 8));
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(var(--angle) * -1));
    
    /* Bouncy animation logic */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
    z-index: 10;
}

.item img {
    width: 100%;
    height: 180px;
    /* object-fit: contain keeps the aspect ratio of your biological art */
    object-fit: contain; 
    
    /* --- THE FIX IS HERE --- */
    border: none; /* No solid border/background */
    background: transparent; /* No background */
    
    /* Subtle glow on the *item itself* to make it stand out against video */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); 
    
    /* Static tilt for organized scrapbook feel */
    transform: rotate(calc(var(--i) * 3deg));
    transition: 0.3s ease;
}

.item p {
    /* Label styling */
    background: rgba(255, 255, 255, 0.9);
    color: #4e85a5;
    font-size: 9px;
    text-transform: uppercase;
    text-align: center;
    padding: 5px;
    margin-top: 10px;
    border-radius: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- 7. Floating "Pop" Hover Interaction --- */
.item:hover { z-index: 500; /* Pops above others */ }

.item:hover img {
    /* Scale up and move slightly upward */
    transform: scale(1.15) translateY(-15px) rotate(0deg);
    
    /* Change the subtle glow to a distinct seafoam blue background glow */
    filter: drop-shadow(0 8px 15px rgba(255, 167, 200, 0.781)); 
}

/* --- 8. Click Bubble Animation (Beachy Tap) --- */
.click-bubble {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(152, 216, 216, 0.6); /* Seafoam Blue Tap */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: bubbleOut 0.8s ease-out forwards;
}

@keyframes bubbleOut {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 150px; height: 150px; opacity: 0; }
}

/* --- 9. Footer --- */
.site-footer {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 100px;
}
.socials a { margin: 0 10px; color: #4a6d7c; text-decoration: none; font-size: 11px; }