/* Core Variables & Typography */
:root {
    --royal-byu: #0047BA; 
    --red-utah: #CC0000;
    --slate-dark: #1e293b;
    --slate-muted: #64748b;
    --card-bg: #ffffff;
    --bg-page: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--slate-dark);
    margin: 0;
    padding: 0;
    transition: background 0.8s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Screen Shake Animation for Rejection */
@keyframes disasterShake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-3px, -2px) rotate(-2deg); }
    20% { transform: translate(-1px, 4px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -3px) rotate(2deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    60% { transform: translate(3px, 1px) rotate(0deg); }
    70% { transform: translate(-1px, -2px) rotate(-2deg); }
    80% { transform: translate(2px, 3px) rotate(1deg); }
    90% { transform: translate(-3px, -1px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.shake-active { 
    animation: disasterShake 0.5s cubic-bezier(.36,.07,.19,.97) both; 
}

/* Hero & Trajectory Simulator */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 40px;
}

.interactive-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    max-width: 680px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.interactive-card h1 {
    margin: 0 0 8px;
    font-size: 2.5rem;
    color: var(--royal-byu);
    letter-spacing: -0.5px;
}

.interactive-card h2 {
    font-size: 1.15rem;
    color: var(--slate-muted);
    font-weight: 500;
    margin: 0 0 12px;
}

.interactive-card .tagline {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 25px;
    font-weight: 500;
}

/* Interactive Buttons */
.button-group { display: flex; gap: 15px; justify-content: center; margin: 20px 0; }
.btn { padding: 14px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: scale(0.96); }
.btn-hire { background-color: var(--royal-byu); color: #ffffff; box-shadow: 0 4px 14px rgba(0, 71, 186, 0.3); }
.btn-hire:hover { box-shadow: 0 6px 20px rgba(0, 71, 186, 0.5); transform: translateY(-2px); }
.btn-reject { background-color: var(--red-utah); color: #ffffff; box-shadow: 0 4px 14px rgba(204,0,0,0.3); }
.btn-reject:hover { box-shadow: 0 6px 20px rgba(204,0,0,0.5); transform: translateY(-2px); }

/* Dynamic State Display */
.result-box { padding: 30px 20px; border-radius: 10px; transition: all 0.4s ease; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-top: 20px; }
.result-box .emoji { font-size: 3.5rem; display: block; margin-bottom: 10px; }
.result-box p { font-size: 1.15rem; font-weight: 600; margin: 0; }
.neutral { background-color: #f1f5f9; border: 2px dashed #cbd5e1; color: var(--slate-muted); }

/* Atmospheric Mode Triggers */
body.heaven-mode { background: radial-gradient(circle at top, #b9e0ff 0%, var(--royal-byu) 100%); }
.state-hired { background-color: #ffffff; border: 3px solid var(--royal-byu); color: var(--royal-byu); box-shadow: 0 0 30px rgba(255, 255, 255, 0.9); }
body.hell-mode { background: radial-gradient(circle at top, #4a0000 0%, #1a0000 100%); }
.state-rejected { background-color: #1a1a1a; border: 3px solid var(--red-utah); color: #f87171; box-shadow: 0 0 30px rgba(204, 0, 0, 0.6); }

/* Spawning Particles & Animations */
.particle { position: fixed; font-size: 2.8rem; pointer-events: none; z-index: 1; }

.particle.heaven { 
    top: -100px; 
    animation: floatDown linear forwards; 
}

.particle.hell { 
    bottom: -100px; 
    animation: floatUp linear forwards; 
}

@keyframes floatDown { 
    90% { opacity: 1; }
    100% { transform: translateY(250vh) rotate(360deg); opacity: 0; } 
}

@keyframes floatUp { 
    90% { opacity: 1; }
    100% { transform: translateY(-250vh) rotate(-360deg); opacity: 0; } 
}

@keyframes flyAway { 
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 1; } 
    25% { transform: translate(-20px, -40px) rotate(-15deg) scale(0.8); } 
    50% { transform: translate(30px, -80px) rotate(20deg) scale(1); } 
    75% { transform: translate(-10px, -120px) rotate(-10deg); opacity: 0.8; } 
    100% { transform: translate(40px, -200px) rotate(15deg); opacity: 0; } 
}

.moth { position: absolute; font-size: 2rem; animation: flyAway 3s ease-out forwards; pointer-events: none; z-index: 25; }

/* Scroll Animation */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* The Impact Wrapper */
.impact-wrapper { max-width: 1000px; margin: 0 auto 60px; padding: 0 20px; position: relative; z-index: 10; }
.section-title { text-align: center; font-size: 1.8rem; color: var(--royal-byu); margin-bottom: 30px; }
.mt-50 { margin-top: 50px; }

/* Bento Grid System */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { background: var(--card-bg); border-radius: 16px; padding: 25px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.bento-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0, 71, 186, 0.12); border-color: #b9e0ff; }
.feature-card { grid-column: span 3; display: flex; flex-direction: column; }
@media (min-width: 769px) {
    .bento-card:nth-child(2) { grid-column: span 2; }
    .bento-card:nth-child(3) { grid-column: span 1; }
    .bento-card:nth-child(4) { grid-column: span 1; }
    .bento-card:nth-child(5) { grid-column: span 1; }
    .bento-card:nth-child(6) { grid-column: span 1; }
}
.bento-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.bento-card h3 { margin: 0 0 10px; font-size: 1.3rem; color: var(--royal-byu); }
.bento-card p { font-size: 1rem; color: #475569; margin: 0 0 20px; }
.dark-card { background: #f8fafc; }

/* Rivalry Card Specifically */
.rivalry-card { background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%); border-color: var(--royal-byu); }
.rivalry-card h3 { color: var(--royal-byu); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

/* Bento Stats Box */
.bento-stats { display: flex; gap: 15px; margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 15px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; flex: 1; min-width: 120px; }
.stat .number { font-size: 1.6rem; font-weight: 800; color: var(--royal-byu); line-height: 1; margin-bottom: 4px; }
.stat .label { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: var(--slate-muted); }

/* Tech Arsenal */
.tech-arsenal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-pill { background: var(--card-bg); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 30px; font-weight: 600; color: var(--royal-byu); transition: all 0.2s ease; }
.tech-pill:hover { background: var(--royal-byu); color: white; transform: scale(1.05); border-color: var(--royal-byu); }

/* Contact Footer (Privacy Secured) */
.contact-section { text-align: center; padding: 40px; background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-color); margin-top: 50px; }
.contact-section h2 { margin-top: 0; color: var(--royal-byu); }
.contact-section p { color: var(--slate-muted); font-size: 0.95rem; margin-bottom: 25px; }
.contact-links { display: flex; justify-content: center; margin-top: 10px; }
.contact-pill { background-color: var(--royal-byu); color: #ffffff; padding: 12px 24px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: default; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .feature-card, .bento-card:nth-child(2), .bento-card:nth-child(3), .bento-card:nth-child(4), .bento-card:nth-child(5), .bento-card:nth-child(6) { grid-column: span 1; }
    .bento-stats { flex-direction: column; }
}