/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #04060e; color: #c8c8d8; overflow-x: hidden; }
::selection { background: rgba(59,130,246,0.3); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === SPLIT LAYOUT === */
.layout { display: flex; min-height: 100vh; }

/* === LEFT: HERO PANEL === */
.hero-panel { position: sticky; top: 0; width: 65%; height: 100vh; background: #000008; overflow: hidden; display: flex; flex-direction: column; cursor: none; }
#heroBg, #heroMain { position: absolute; inset: 0; z-index: 0; }
#heroMain { z-index: 1; }
#heroCursor { position: fixed; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(0,245,255,0.9) 0%, rgba(123,47,255,0.3) 60%, transparent 100%); pointer-events: none; transform: translate(-50%, -50%); z-index: 9999; box-shadow: 0 0 20px #00f5ff, 0 0 40px rgba(0,245,255,0.4); transition: transform 0.05s ease; display: none; }

nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 30px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { color: #00f5ff; font-size: 1rem; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 1.5px; color: #e8e8f0; }
.logo-sub { font-size: 0.6rem; color: #555; letter-spacing: 1px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.72rem; font-weight: 500; color: #555; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #e8e8f0; }

#typing-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; pointer-events: none; text-align: center; white-space: nowrap; }
#typed-text { font-family: 'Courier New', monospace; font-size: clamp(22px, 3.5vw, 46px); font-weight: 700; letter-spacing: 0.06em; background: linear-gradient(90deg, #00f5ff, #7b2fff, #ff00aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 18px rgba(0,245,255,0.55)); }
#typed-cursor { font-family: 'Courier New', monospace; font-size: clamp(22px, 3.5vw, 46px); font-weight: 300; color: #00f5ff; text-shadow: 0 0 12px #00f5ff; animation: cursorBlink 0.55s step-end infinite; margin-left: 2px; }
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* === RIGHT: SIDEBAR === */
.sidebar { width: 35%; min-height: 100vh; overflow-y: auto; background: #0a0e1a; border-left: 1px solid rgba(255,255,255,0.04); padding: 0; }
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.2); border-radius: 3px; }

.sidebar-section { padding: 24px 22px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.side-heading { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: #e8e8f0; letter-spacing: 2px; margin-bottom: 16px; }

/* === ABOUT CARD === */
.about-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 18px; overflow: hidden; }
.about-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.about-meta { display: flex; gap: 6px; align-items: center; }
.meta-tag { font-size: 0.68rem; color: #888; padding: 3px 8px; background: rgba(255,255,255,0.04); border-radius: 4px; }
.meta-sep { color: #333; font-size: 0.6rem; }
.about-photo { width: 100px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(59,130,246,0.15); flex-shrink: 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font-size: 0.82rem; color: #777; line-height: 1.7; margin-bottom: 14px; }
.about-btn { display: inline-block; padding: 8px 16px; background: #ef4444; color: white; border-radius: 6px; font-size: 0.72rem; font-weight: 600; transition: all 0.3s; }
.about-btn:hover { background: #dc2626; transform: translateY(-1px); }

/* === PROJECT CARDS === */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proj-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px; transition: all 0.3s; cursor: pointer; display: block; }
.proj-card:hover { border-color: rgba(59,130,246,0.25); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.proj-thumb { height: 70px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 700; color: #e8e8f0; letter-spacing: 0.5px; margin-bottom: 4px; }
.proj-card p { font-size: 0.62rem; color: #666; line-height: 1.4; margin-bottom: 6px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.proj-tags span { font-size: 0.55rem; padding: 2px 5px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.12); border-radius: 3px; color: #3b82f6; }
.proj-label { font-size: 0.58rem; color: #555; font-style: italic; }

/* === SKILLS ORBITAL === */
.skills-orbital { position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.skills-bg-img { mask-image: radial-gradient(circle at center, #000000 60%, transparent 70%); position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; border-radius: 50%; }
.skill-badges { position: relative; width: 100%; height: 100%; }
.skill-orbit-item { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%, -50%) translate(calc(cos(var(--angle)) * var(--dist)), calc(sin(var(--angle)) * var(--dist) * -1)); transition: transform 0.3s; }
.skill-orbit-item:hover { transform: translate(-50%, -50%) translate(calc(cos(var(--angle)) * var(--dist)), calc(sin(var(--angle)) * var(--dist) * -1)) scale(1.2); }
.skill-orbit-item span { font-size: 1.6rem; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; backdrop-filter: blur(8px); }
.skill-orbit-item p { font-size: 0.6rem; color: #888; text-align: center; }

/* === EXPERIENCE === */
.exp-list { position: relative; padding-left: 18px; }
.exp-list::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, #3b82f6, rgba(59,130,246,0.1)); }
.exp-item { position: relative; margin-bottom: 18px; }
.exp-item:last-child { margin-bottom: 0; }
.exp-dot { position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; border: 2px solid #0a0e1a; box-shadow: 0 0 8px rgba(59,130,246,0.4); }
.exp-body { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; transition: all 0.3s; }
.exp-body:hover { border-color: rgba(59,130,246,0.15); }
.exp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; flex-wrap: wrap; gap: 4px; }
.exp-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600; color: #e8e8f0; }
.exp-head span { font-size: 0.65rem; color: #555; }
.exp-body p { font-size: 0.72rem; color: #666; line-height: 1.5; }

/* === CONTACT === */
.contact-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; }
.contact-icon { font-size: 1.4rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 50%; transition: all 0.3s; }
.contact-icon:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.copyright { text-align: center; font-size: 0.62rem; color: #333; }

/* === CHATBOT === */
.chat-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.chat-messages { height: 260px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.2); border-radius: 3px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; animation: msgFade 0.3s ease; }
.chat-msg.user { flex-direction: row-reverse; }
@keyframes msgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg-avatar { font-size: 1.1rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(59,130,246,0.1); flex-shrink: 0; }
.chat-msg.user .msg-avatar { background: rgba(139,92,246,0.15); }
.msg-bubble { padding: 8px 12px; border-radius: 10px; font-size: 0.75rem; line-height: 1.5; max-width: 85%; }
.chat-msg.bot .msg-bubble { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: #bbb; }
.chat-msg.user .msg-bubble { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; border-radius: 10px 10px 2px 10px; }
.chat-input-row { display: flex; border-top: 1px solid rgba(255,255,255,0.04); }
.chat-input-row input { flex: 1; padding: 12px 14px; background: transparent; border: none; color: #ccc; font-size: 0.78rem; font-family: 'Inter', sans-serif; outline: none; }
.chat-input-row input::placeholder { color: #444; }
.chat-input-row button { padding: 12px 16px; background: #3b82f6; color: white; border: none; font-size: 1rem; cursor: pointer; transition: background 0.3s; }
.chat-input-row button:hover { background: #2563eb; }
.chat-input-row button:disabled { background: #333; cursor: default; }
.chat-suggestions { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,0.03); }
.chat-suggestions button { flex: 1; padding: 5px 4px; background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.12); border-radius: 6px; color: #3b82f6; font-size: 0.6rem; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s; }
.chat-suggestions button:hover { background: rgba(59,130,246,0.15); }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span { width: 5px; height: 5px; background: #555; border-radius: 50%; animation: typingBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-limit { text-align: center; font-size: 0.6rem; color: #444; margin-top: 6px; }
.chat-limit.warning { color: #f59e0b; }
.chat-limit.exhausted { color: #ef4444; }

/* === MOBILE NAV === */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10,14,26,0.95); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.04); padding: 10px; z-index: 100; justify-content: space-around; }
.mobile-nav a { font-size: 0.65rem; color: #555; text-align: center; transition: color 0.3s; }
.mobile-nav a:hover { color: #e8e8f0; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .hero-panel { position: relative; width: 100%; height: 70vh; }
    .sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,0.04); padding-bottom: 60px; }
    .nav-links { display: none; }
    .mobile-nav { display: flex; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .proj-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.4rem; }
}
