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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: black;
    overflow: hidden;
    cursor: grab;
}

body:active {
    cursor: grabbing;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

#content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

#name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.1),
        4px 4px 0px rgba(0, 0, 0, 0.05),
        6px 6px 0px rgba(0, 0, 0, 0.025);
}

#email {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
}

.section {
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
}

.section a {
    display: block;
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s ease;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
}

.section a:hover {
    opacity: 0.7;
}

#tip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.82);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    animation: subtle-pulse 3s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.3),
        2px 2px 0px rgba(0, 0, 0, 0.2);
}

#tip span {
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; }
}

#wander-quote-block {
    position: fixed;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 640px;
    opacity: 0;
    pointer-events: none;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.wander-quote-text {
    color: white;
    font-size: 0.925rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Phase 1 — portal content card (a subtle frosted "field note", top-left) */
#portal-card {
    position: fixed;
    top: 6.5%;
    left: 4.5%;
    z-index: 9999;
    width: 88%;
    max-width: 340px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s linear;
    box-sizing: border-box;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(18, 16, 26, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.portal-card-title {
    margin: 0 0 0.45em 0;
    padding-bottom: 0.32em;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.portal-card-body {
    font-size: 1.04rem;
    line-height: 1.55;
    font-weight: 400;
}
.portal-card-body a {
    color: #9fd0ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(159, 208, 255, 0.4);
    transition: color 0.2s ease;
}
.portal-card-body a:hover {
    color: #ffffff;
}

#sagan-quote-block {
    position: fixed;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 640px;
    opacity: 0;
    pointer-events: none;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.sagan-quote-text {
    color: white;
    font-size: 0.925rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#overlay-layer {
    transition: opacity 0.25s ease-out;
}

/* 3D mode styles - now the default */
body.three-d-mode #container {
    opacity: 0;
    pointer-events: none;
}

body.three-d-mode #canvas {
    opacity: 1;
}

/* Fixed LinkedIn icon - top right (high z-index so it stays above WebGL canvas) */
.email-fixed,
.linkedin-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    color: #0A66C2;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    isolation: isolate;
}
/* Email icon sits to the left of the LinkedIn icon */
.email-fixed {
    right: 58px;
    color: #0066cc;
}
.email-fixed:hover,
.linkedin-fixed:hover {
    opacity: 0.9;
}

/* Music mute / unmute button (bottom-right) */
.mute-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 28, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.mute-btn:hover {
    opacity: 1;
    background: rgba(20, 20, 28, 0.62);
}
.mute-btn .icon-muted {
    display: none;
}
.mute-btn.muted .icon-muted {
    display: block;
}
.mute-btn.muted .icon-unmuted {
    display: none;
}

.email-fixed svg {
    width: 100%;
    height: 100%;
    max-width: 28px;
    max-height: 28px;
    display: block;
    flex-shrink: 0;
}
.linkedin-fixed svg {
    width: 100%;
    height: 100%;
    max-width: 28px;
    max-height: 28px;
    display: block;
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    #name {
        font-size: 2.5rem;
    }
    
    #email {
        font-size: 1rem;
    }
    
    .section a {
        font-size: 1rem;
    }
    
    #tip {
        bottom: 15px;
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    #wander-quote-block {
        bottom: 14%;
        max-width: 88%;
    }
    .wander-quote-text {
        font-size: 0.725rem;
    }
    #sagan-quote-block {
        bottom: 14%;
        max-width: 88%;
    }
    .sagan-quote-text {
        font-size: 0.725rem;
    }
    #portal-card {
        top: 4%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 380px;
        padding: 14px 16px;
    }
    .portal-card-title {
        font-size: 1.25rem;
    }
    .portal-card-body {
        font-size: 0.92rem;
    }
} 