:root {
    --deep-night: #0B0F1A;
    --midnight-blue: #141C2F;
    --bunny-purple: #7C5CFF;
    --neon-sky-blue: #3DA9FC;
    --soft-white: #E6EAF2;
    --cool-gray: #AAB3C5;
    --neon-glow: #6EA8FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    background-color: var(--deep-night);
    color: var(--soft-white);
    overflow-x: hidden; 
}

#atmosphere-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Lets you click things behind the snow */
}

.scroll-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 100px; 
}

/* --- Banner & Intro Profile --- */
.top-banner {
    width: 100vw;
    height: 300px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-size: cover;
    background-position: center; 
    border-bottom: 1px solid #7C5CFF; /* Softer border */
}

.banner-overlay {
    width: 100%;
    height: 100%;
}

.intro-profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(61, 169, 252, 0.6);
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.2); /* Soft purple haze instead of harsh blue */
    margin-bottom: 20px;
}

/* --- Typography & Intro --- */
.hero-section {
    text-align: center;
    margin-top: 5vh;
    width: 100%;
}

.title-container h1 {
    font-size: 5rem; 
    font-weight: 700;
    color: var(--soft-white);
    text-shadow: 0 0 20px rgba(124, 92, 255, 0.4); /* Cleaner text shadow */
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--neon-sky-blue);
    margin-bottom: 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.quote-box {
    background: rgba(20, 28, 47, 0.4); /* More transparent for a cleaner look */
    border-left: 3px solid var(--bunny-purple);
    padding: 25px 35px;
    margin: 0 auto;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--cool-gray);
    max-width: 700px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Adds depth */
}

/* --- Gallery --- */
.gallery-section { width: 100%; max-width: 1200px; margin: 0 auto; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: 450px; 
    background-color: var(--midnight-blue);
    border-radius: 12px;
    border: 1px solid rgba(124, 92, 255, 0.15); /* Replaced with subtle purple */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center; 
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: rgba(61, 169, 252, 0.5);
    box-shadow: 0 15px 35px rgba(11, 15, 26, 0.8), 0 0 20px rgba(61, 169, 252, 0.15);
}

.overlay-text {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.95), transparent); /* Smoother fade */
    padding: 25px 0 15px 0;
    transition: bottom 0.4s ease;
    font-weight: bold;
    color: var(--neon-glow);
}

.gallery-item:hover .overlay-text { bottom: 0; }

/* --- Instructions Section --- */
.instructions-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.terminal-instructions {
    background: rgba(20, 28, 47, 0.5);
    border: 1px solid rgba(124, 92, 255, 0.3); /* Soft purple border */
    padding: 30px 50px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--cool-gray);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.terminal-instructions h3 {
    color: var(--bunny-purple);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.terminal-instructions p { margin: 8px 0; font-size: 0.95rem; }

/* --- Chat Interface Container --- */
.chat-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.chat-container {
    width: 95%;
    max-width: 800px; 
    height: 80vh;
    min-height: 600px;
    position: relative;
    z-index: 10;
    background-image: url('pics/19.jfif'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(11, 15, 26, 0.8); /* Replaced harsh purple with deep night glass */
    background-blend-mode: overlay; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(61, 169, 252, 0.3); /* Thin, sleek neon sky blue border */
    border-radius: 16px; /* Sleeker corners */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(61, 169, 252, 0.1); /* Elegant depth, not blinding */
}

/* --- Chat Internals --- */
.chat-header { padding: 20px 25px; border-bottom: 1px solid rgba(61, 169, 252, 0.2); display: flex; align-items: center; gap: 15px; background: rgba(11, 15, 26, 0.6); border-radius: 16px 16px 0 0; }
.avatar-glow { width: 45px; height: 45px; border-radius: 50%; background: var(--bunny-purple); box-shadow: 0 0 15px rgba(124, 92, 255, 0.5); }
.header-info h2 { font-size: 1.2rem; color: var(--soft-white); font-weight: 600; }
.status { font-size: 0.85rem; color: var(--neon-sky-blue); opacity: 0.8; }

.chat-box { flex: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-box::-webkit-scrollbar { width: 6px; }
.chat-box::-webkit-scrollbar-thumb { background: rgba(124, 92, 255, 0.3); border-radius: 10px; }

.message { max-width: 80%; padding: 14px 20px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; font-weight: 400; }
.bot-message { align-self: flex-start; background: rgba(20, 28, 47, 0.8); border-left: 2px solid var(--bunny-purple); border-bottom-left-radius: 4px; color: var(--soft-white); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.user-message { align-self: flex-end; background: rgba(124, 92, 255, 0.2); border-right: 2px solid var(--neon-sky-blue); border-bottom-right-radius: 4px; color: var(--soft-white); box-shadow: 0 5px 15px rgba(0,0,0,0.2); backdrop-filter: blur(5px); }

.input-container { padding: 20px 25px; display: flex; gap: 15px; border-top: 1px solid rgba(61, 169, 252, 0.2); background: rgba(11, 15, 26, 0.6); border-radius: 0 0 16px 16px; }
.input-container input { flex: 1; background: rgba(20, 28, 47, 0.6); border: 1px solid rgba(124, 92, 255, 0.3); border-radius: 8px; padding: 15px 20px; color: var(--soft-white); outline: none; transition: all 0.3s ease; }
.input-container input:focus { border-color: var(--neon-sky-blue); background: rgba(20, 28, 47, 0.9); box-shadow: 0 0 15px rgba(61, 169, 252, 0.15); }
.input-container button { background: var(--bunny-purple); color: var(--soft-white); border: none; border-radius: 8px; padding: 0 25px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; }
.input-container button:hover { background: var(--neon-sky-blue); box-shadow: 0 0 15px rgba(61, 169, 252, 0.4); transform: translateY(-2px); }

/* --- Creator Profile --- */
.creator-profile {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 100px;
}

.creator-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(20, 28, 47, 0.4);
    border-left: 4px solid var(--bunny-purple);
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.creator-card:hover {
    border-left-color: var(--neon-sky-blue);
    background: rgba(20, 28, 47, 0.6);
}

.creator-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(124, 92, 255, 0.5);
}

.creator-info h4 { font-size: 1rem; color: var(--cool-gray); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 5px; }
.creator-info h2 { font-size: 2.5rem; color: var(--soft-white); margin-bottom: 10px; }
.creator-info p { font-size: 1.1rem; color: var(--neon-sky-blue); margin-bottom: 25px; line-height: 1.5; opacity: 0.9; }

/* --- Portfolio Button --- */
.portfolio-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(61, 169, 252, 0.5);
    color: var(--neon-sky-blue);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.portfolio-btn:hover {
    background: rgba(61, 169, 252, 0.1);
    border-color: var(--neon-sky-blue);
    box-shadow: 0 0 20px rgba(61, 169, 252, 0.2);
}

/* --- BUNNY LOCK 1.0 SYSTEM --- */
body.locked { overflow: hidden; }

#bunny-lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 26, 0.9);
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    backdrop-filter: blur(15px);
}

.lock-terminal {
    text-align: center;
    border: 1px solid rgba(124, 92, 255, 0.3);
    padding: 60px;
    background: rgba(20, 28, 47, 0.6);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lock-title { color: var(--neon-sky-blue); font-size: 2rem; letter-spacing: 6px; margin-bottom: 15px; opacity: 0.9; }
.lock-status { color: var(--cool-gray); font-size: 0.95rem; margin-bottom: 40px; letter-spacing: 2px; transition: color 0.3s ease; }
#lock-input { background: transparent; border: none; border-bottom: 2px solid rgba(124, 92, 255, 0.5); color: var(--soft-white); font-size: 2rem; text-align: center; outline: none; width: 280px; padding: 10px; letter-spacing: 15px; transition: all 0.3s ease; }
#lock-input:focus { border-bottom-color: var(--neon-sky-blue); }
.unlocked { opacity: 0; visibility: hidden; }

#unlock-btn {
    background: transparent;
    color: var(--neon-sky-blue); /* Removed rogue cyan */
    border: 1px solid rgba(61, 169, 252, 0.3);
    padding: 12px 35px;
    font-size: 13px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
}

#unlock-btn:hover, #unlock-btn:active { background: rgba(61, 169, 252, 0.1); border-color: var(--neon-sky-blue); box-shadow: 0 0 15px rgba(61, 169, 252, 0.2); }

/* --- Terminal Footer --- */
.terminal-footer {
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    background: var(--deep-night);
    border-top: 1px solid rgba(124, 92, 255, 0.15);
    color: var(--cool-gray);
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1; 
}
.terminal-footer p { margin: 8px 0; opacity: 0.6; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .title-container h1 { font-size: 3rem; }
    .subtitle { font-size: 1.2rem; }
    .quote-box { font-size: 0.95rem; padding: 20px; }
    .gallery-item { height: 350px; }
    .chat-container { height: 75vh; border-radius: 12px; margin-top: 2vh; margin-bottom: 2vh; }
    .scroll-container { gap: 60px; padding: 40px 15px; }
    .intro-profile-img { width: 200px; height: 200px; }
    .creator-card { flex-direction: column; text-align: center; padding: 30px 20px; border-left: none; border-top: 4px solid var(--bunny-purple); }
    .creator-card:hover { border-left: none; border-top-color: var(--neon-sky-blue); }
    .creator-img { width: 140px; height: 140px; }
    .creator-info h2 { font-size: 2rem; }
}

