/* ═══════════════════════════════════════════
   RAKA'S LANDING PAGE — Gaming/Arcade Theme
   ═══════════════════════════════════════════ */

:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --accent: #FFD166;
    --dark: #1A1A2E;
    --darker: #16213E;
    --text: #E0E0E0;
    --text-muted: #A0A0B0;
    --card-bg: rgba(255, 255, 255, 0.06);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Particles ─── */
.particles {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%; opacity: .5;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: .5; }
    90% { opacity: .5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 18px 0; transition: .3s;
}
.navbar.scrolled {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    padding: 12px 0;
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: var(--accent);
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text); font-weight: 600; font-size: .95rem; transition: .2s;
    position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8px 18px; border-radius: 50px; color: #fff !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(108,99,255,.4); }
.hamburger {
    display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.hamburger span {
    width: 26px; height: 3px; background: var(--accent); border-radius: 3px; transition: .3s;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 1; padding: 100px 24px 60px;
    background: radial-gradient(circle at 50% 30%, var(--hero-bg), var(--darker) 70%);
}
.hero-content { position: relative; z-index: 2; }
.hero-avatar {
    width: 180px; height: 180px; margin: 0 auto 24px; border-radius: 50%;
    border: 5px solid var(--accent); box-shadow: 0 0 40px rgba(255,209,102,.4);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    animation: pulse 3s ease-in-out infinite;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 4rem; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hero-greeting { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.hero-name {
    font-family: 'Fredoka One', cursive; font-size: clamp(2.8rem, 8vw, 5rem);
    color: #fff; margin: 6px 0 10px;
    text-shadow: 0 0 30px rgba(108,99,255,.6);
}
.hero-tagline { font-size: 1.2rem; color: var(--text); max-width: 560px; margin: 0 auto 28px; }
.hero-btn {
    display: inline-block; background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1.05rem;
    transition: .3s; box-shadow: 0 8px 24px rgba(108,99,255,.4);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(108,99,255,.55); }
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 44px; border: 2px solid var(--text-muted); border-radius: 14px;
}
.scroll-indicator span {
    display: block; width: 4px; height: 8px; background: var(--accent); border-radius: 4px;
    margin: 8px auto; animation: scroll 1.6s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ─── Sections ─── */
.section { padding: 90px 0; position: relative; z-index: 1; }
.section-alt { background: var(--darker); }
.section-title {
    font-family: 'Fredoka One', cursive; font-size: clamp(1.8rem, 5vw, 2.6rem);
    text-align: center; color: var(--accent); margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 50px; }

/* ─── About ─── */
.about-card {
    max-width: 760px; margin: 30px auto 0; background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 36px;
    backdrop-filter: blur(8px);
}
.about-bio { font-size: 1.1rem; color: var(--text); }

/* ─── Hobbies ─── */
.hobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.hobby-card {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
    padding: 32px 24px; text-align: center; transition: .3s;
}
.hobby-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(108,99,255,.25); }
.hobby-icon {
    width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.hobby-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; color: var(--accent); margin-bottom: 6px; }
.hobby-card p { color: var(--text-muted); font-size: .92rem; }

/* ─── Achievements ─── */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ach-card {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
    padding: 28px 24px; transition: .3s; border-left: 5px solid var(--accent);
}
.ach-card:hover { transform: translateX(6px); border-color: var(--secondary); }
.ach-icon { font-size: 2.2rem; margin-bottom: 10px; }
.ach-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.15rem; color: var(--accent); margin-bottom: 6px; }
.ach-card p { color: var(--text-muted); font-size: .92rem; }

/* ─── Gallery ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.1); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: 2.4rem;
}
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px;
    color: #fff; font-weight: 600; font-size: .9rem;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    transform: translateY(100%); transition: .3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ─── Contact ─── */
.contact-card {
    max-width: 640px; margin: 30px auto 0; text-align: center; padding: 50px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 24px;
    box-shadow: 0 16px 40px rgba(108,99,255,.35);
}
.contact-card h2 { font-family: 'Fredoka One', cursive; font-size: 2rem; color: #fff; margin-bottom: 10px; }
.contact-card p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.contact-btn {
    display: inline-block; background: #fff; color: var(--primary); padding: 12px 28px;
    border-radius: 50px; font-weight: 700; transition: .3s;
}
.contact-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* ─── Footer ─── */
.footer { text-align: center; padding: 30px 20px; background: var(--darker); color: var(--text-muted); }
.footer-mini { font-size: .85rem; margin-top: 6px; }
.footer b { color: var(--accent); }

/* ─── Chat ─── */
.chat-box {
    max-width: 720px; margin: 0 auto; background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
    backdrop-filter: blur(8px);
}
.chat-list { max-height: 360px; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; }
.chat-msg.guest { justify-content: flex-start; }
.chat-msg.admin { justify-content: flex-end; }
.chat-bubble {
    max-width: 78%; padding: 12px 16px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
}
.chat-msg.guest .chat-bubble { background: rgba(108,99,255,.18); border-bottom-left-radius: 6px; }
.chat-msg.admin .chat-bubble { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-bottom-right-radius: 6px; }
.chat-name { font-weight: 700; font-size: .82rem; display: block; margin-bottom: 2px; color: var(--accent); }
.chat-msg.admin .chat-name { color: #fff; }
.chat-badge { background: var(--accent); color: var(--dark); font-size: .62rem; font-weight: 800; padding: 1px 7px; border-radius: 50px; margin-left: 4px; }
.chat-bubble p { font-size: .95rem; line-height: 1.5; word-wrap: break-word; }
.chat-time { font-size: .68rem; opacity: .6; display: block; margin-top: 4px; }
.chat-empty { text-align: center; color: var(--text-muted); padding: 30px 0; font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.chat-form input {
    flex: 1; padding: 12px 16px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,.15);
    background: var(--darker); color: var(--text); font-family: 'Nunito', sans-serif; font-size: .95rem;
}
.chat-form input::placeholder { color: var(--text-muted); }
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,209,102,.2); }
.chat-form input#chatName { flex: 0 0 130px; }
.chat-form button {
    width: 48px; height: 48px; flex-shrink: 0; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 1.1rem;
    cursor: pointer; transition: .25s;
}
.chat-form button:hover { transform: scale(1.08); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 70px; right: -100%; flex-direction: column; gap: 14px;
        background: var(--darker); width: 240px; padding: 24px; border-radius: 0 0 0 20px;
        transition: .3s; box-shadow: -4px 0 20px rgba(0,0,0,.3);
    }
    .nav-links.open { right: 0; }
    .hero-avatar { width: 140px; height: 140px; }
}