@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

:root {
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.3);
    --bg: #020406;
    --text-main: #e0f7fa;
    --success: #27c93f;
    --warning: #ffbd2e;
    --alert: #ff5f56;
    --heart: #00f3ff;
}

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

body {
    background-color: var(--bg); color: var(--text-main);
    font-family: 'Rajdhani', sans-serif; overflow-x: hidden;
    cursor: crosshair; display: flex; flex-direction: column; min-height: 100vh;
}

/* ==========================================
   CANVAS & OVERLAYS
========================================== */
#network-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: drop-shadow(0 0 5px var(--primary)); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, #000 90%); pointer-events: none; z-index: 0; }
.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1)); background-size: 100% 4px; pointer-events: none; z-index: 1; }

/* ==========================================
   HEADER & NAVIGATION
========================================== */
header { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; z-index: 10; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent); border-bottom: 1px solid var(--primary-dim); }
.logo { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--primary); text-shadow: 0 0 15px var(--primary); letter-spacing: 2px; }
nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 1rem; letter-spacing: 1.5px; transition: 0.3s; position: relative; }
nav a.active { color: var(--primary); }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); box-shadow: 0 0 10px var(--primary); transition: 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; } nav a:hover { color: var(--primary); }

/* ==========================================
   USER PROFILE DROPDOWN
========================================== */
#auth-container { position: relative; display: flex; align-items: center; }
#user-profile-menu { position: relative; cursor: pointer; display: flex; align-items: center; }
/* #nav-profile-pic { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--primary); transition: 0.3s; object-fit: cover; margin-top: -8px; }
#nav-profile-pic:hover { box-shadow: 0 0 15px var(--primary); transform: scale(1.05); } */

#dropdown-content { position: absolute; top: 55px; right: 0; background: rgba(2, 4, 6, 0.95); border: 1px solid var(--primary); border-radius: 4px; width: 200px; box-shadow: 0 5px 20px rgba(0, 243, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; overflow: hidden; transform-origin: top right; transition: all 0.3s ease; opacity: 0; visibility: hidden; transform: scale(0.8); z-index: 100; }
#dropdown-content.show { opacity: 1; visibility: visible; transform: scale(1); }
.dropdown-header { padding: 15px; background: rgba(0, 243, 255, 0.1); font-family: 'Orbitron', sans-serif; text-align: center; color: #fff; font-size: 0.9rem; letter-spacing: 1px; }
#dropdown-content hr { border: none; border-top: 1px solid var(--primary-dim); margin: 0; }
#dropdown-content a { padding: 12px 15px; color: #e0f7fa; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; transition: 0.3s; text-transform: none; letter-spacing: 1px; }
#dropdown-content a::after { display: none; }
#dropdown-content a:hover { background: rgba(0, 243, 255, 0.1); color: var(--primary); padding-left: 20px; }
#dropdown-logout { color: #ff5f56 !important; } #dropdown-logout:hover { background: rgba(255, 95, 86, 0.1) !important; color: #ff5f56 !important; }

/* ==========================================
   GLOBAL UI COMPONENTS (BUTTONS, FOOTER)
========================================== */
.btn-glow { padding: 12px 40px; background: transparent; border: 1px solid var(--primary); color: var(--primary); font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; transition: 0.3s; box-shadow: 0 0 10px var(--primary-dim); margin-top: 15px; }
.btn-glow:hover { background: var(--primary); color: #000; box-shadow: 0 0 30px var(--primary); }
.btn-danger { border-color: #ff5f56; color: #ff5f56; box-shadow: 0 0 10px rgba(255, 95, 86, 0.3); }
.btn-danger:hover { background: #ff5f56; color: #000; box-shadow: 0 0 30px rgba(255, 95, 86, 0.8); }

footer { text-align: center; padding: 30px 20px; background: #000; border-top: 1px solid #111; position: relative; z-index: 2; color: #555; margin-top: auto; }
.social-container { display: flex; justify-content: center; gap: 20px; margin: 0 0 20px 0; flex-wrap: wrap; position: relative; z-index: 10; }
.social-box { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; text-decoration: none; color: #fff; font-size: 1.2rem; transition: all 0.3s ease; }
.social-box:hover { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-dim); transform: translateY(-5px); background: rgba(0, 243, 255, 0.05); color: var(--primary); }

.terminal-header { background: rgba(0, 243, 255, 0.1); padding: 8px 15px; border-bottom: 1px solid var(--primary-dim); display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-title { margin-left: 10px; font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--primary); opacity: 0.7; }

.page-header { text-align: center; margin-bottom: 50px; }
.page-header h1 { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: #fff; letter-spacing: 3px; text-shadow: 0 0 20px var(--primary-dim); margin-bottom: 10px; }
.page-header p { font-family: 'Fira Code', monospace; color: var(--primary); opacity: 0.8; font-size: 1rem; }

.filter-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: rgba(0, 20, 25, 0.6); border: 1px solid rgba(0, 243, 255, 0.3); color: #aab; padding: 8px 20px; font-family: 'Fira Code', monospace; font-size: 0.85rem; cursor: pointer; transition: 0.3s; border-radius: 3px; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.filter-btn:hover { border-color: var(--primary); color: #fff; box-shadow: 0 0 10px var(--primary-dim); }
.filter-btn.active { background: rgba(0, 243, 255, 0.15); border-color: var(--primary); color: var(--primary); box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2), 0 0 15px var(--primary-dim); text-shadow: 0 0 5px var(--primary); }

/* ==========================================
   HOME PAGE
========================================== */
.home-header { padding: 150px 20px 50px; text-align: center; align-items: center; position: relative; flex-direction: column; justify-content: center; display: flex; z-index: 2; }
.status-bar { display: inline-block; border: 1px solid var(--primary); padding: 5px 15px; margin-bottom: 20px; font-family: 'Orbitron', sans-serif; font-size: 0.7rem; color: var(--primary); background: rgba(0, 243, 255, 0.05); box-shadow: 0 0 10px var(--primary-dim); letter-spacing: 2px; }
.home-header h1 { font-family: 'Orbitron', sans-serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 15px; text-transform: none; color: #fff; text-shadow: 0 0 20px var(--primary-dim); }
.home-header p.subtitle { font-size: 1.2rem; max-width: 600px; color: #aab; margin-bottom: 40px; }

.services { padding: 100px 5%; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card { background: rgba(10, 15, 20, 0.6); border: 1px solid rgba(0, 243, 255, 0.1); -webkit-backdrop-filter: blur(10px); padding: 40px; backdrop-filter: blur(10px); transition: 0.4s; position: relative; }
.card:hover { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1); }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, transparent 95%, var(--primary) 100%); opacity: 0; transition: 0.4s; }
.card:hover::before { opacity: 0.3; }
.card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 10px; color: #fff; }
.card p { color: #889; line-height: 1.6; }

/* SOCIAL MEDIA BOXES */
.social-container-home { display: flex; justify-content: center; gap: 20px; margin: 0px 0 30px 0; flex-wrap: wrap; position: relative; z-index: 10;}
.social-box-home { display: flex; align-items: center; justify-content: center; width: 70px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; text-decoration: none; color: #fff; font-size: 1.5rem; transition: all 0.3s ease;}
.social-box-home:hover { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-dim); transform: translateY(-5px); background: rgba(0, 243, 255, 0.05); color: var(--primary); }

.terminal-box { width: 100%; max-width: 650px; background: rgba(0, 20, 25, 0.9); border: 1px solid var(--primary); border-radius: 5px; box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); margin-top: 30px; text-align: left; font-family: 'Fira Code', 'Courier New', monospace; overflow: hidden; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); position: relative; z-index: 10; }
.terminal-content { padding: 20px; color: #e0f7fa; font-size: 0.95rem; line-height: 1.6; min-height: 180px; white-space: pre-wrap; position: relative; }
.terminal-line { display: block; margin-bottom: 5px; word-wrap: break-word; }
.prompt-user { color: #27c93f; } .output-text { color: #aab; opacity: 0.9; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--primary); animation: blink 1s infinite; vertical-align: text-bottom; margin-left: 1px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-like { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.terminal-like-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.3); font-size: 1rem; cursor: pointer; transition: 0.3s; outline: none; }
.terminal-like-btn:hover { color: var(--heart); transform: scale(1.1); text-shadow: 0 0 10px rgba(255, 42, 95, 0.5); }
.terminal-like-btn.liked { color: var(--heart); text-shadow: 0 0 10px rgba(255, 42, 95, 0.5); }
.terminal-like-count { font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #aab; }

.live-likes-feed { position: absolute; bottom: 15px; right: 20px; height: 100px; width: 150px; overflow: hidden; text-align: right; pointer-events: none; -webkit-mask-image: linear-gradient(to top, transparent, black 5%, black 0%, transparent); mask-image: linear-gradient(to top, transparent, black 5%, black 0%, transparent); }
.likes-marquee { display: flex; flex-direction: column; gap: 5px; animation: scrollUp 5s linear infinite; }
.likes-marquee span { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--primary); opacity: 0.7; }
.likes-marquee span i { color: var(--heart); font-size: 0.6rem; margin-right: 5px; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ==========================================
   AUTH (LOGIN & REGISTER)
========================================== */
.login-wrapper, .auth-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 120px 20px 60px; position: relative; z-index: 2; }
.login-box, .auth-box { background: rgba(0, 20, 25, 0.85); border: 1px solid var(--primary); width: 100%; max-width: 450px; box-shadow: 0 0 30px rgba(0, 243, 255, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.auth-box { max-width: 500px; }
.login-content, .auth-content { padding: 40px; text-align: center; }
.login-content h2, .auth-content h2 { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: #fff; margin-bottom: 10px; letter-spacing: 2px; }
.login-content p.subtitle, .auth-content p.subtitle { color: #889; font-size: 0.9rem; margin-bottom: 30px; font-family: 'Fira Code', monospace; }

.input-row { display: flex; gap: 15px; }
.input-group { margin-bottom: 25px; text-align: left; flex: 1; }
.input-group label { display: block; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--primary); margin-bottom: 8px; }
.input-group input { width: 100%; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 243, 255, 0.3); color: #fff; padding: 12px 15px; font-family: 'Fira Code', monospace; font-size: 1rem; outline: none; transition: 0.3s; }
.input-group input:focus { border-color: var(--primary); box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1), 0 0 10px rgba(0, 243, 255, 0.2); }

.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 40px; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); cursor: pointer; opacity: 0.6; transition: 0.3s; font-size: 1.1rem; }
.toggle-password:hover { opacity: 1; text-shadow: 0 0 10px var(--primary); }

.login-footer, .auth-footer { margin-top: 25px; display: flex; justify-content: space-between; font-size: 0.85rem; font-family: 'Fira Code', monospace; }
.auth-footer { justify-content: center; }
.login-footer a, .auth-footer a { color: #aab; text-decoration: none; transition: 0.3s; }
.login-footer a:hover, .auth-footer a:hover { color: var(--primary); text-shadow: 0 0 5px var(--primary); }

.avatar-upload-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; }
.avatar-label { position: relative; width: 90px; height: 90px; border-radius: 50%; border: 1px dashed var(--primary); cursor: pointer; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.5); transition: 0.3s; }
.avatar-label:hover { box-shadow: 0 0 15px var(--primary-dim); border: 1px solid var(--primary); }
.default-avatar-icon { font-size: 2.5rem; color: var(--primary); opacity: 0.7; }
#avatar-preview { width: 100%; height: 100%; object-fit: cover; display: none; position: absolute; top: 0; left: 0; z-index: 1; border-radius: 50%; }
.avatar-overlay { position: absolute; border-radius: 50%; background: rgba(0, 0, 0, 0.6); width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: #fff; opacity: 0; transition: 0.3s; z-index: 2; }
.avatar-label:hover .avatar-overlay { opacity: 1; }
.upload-text { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--primary); margin-top: 10px; opacity: 0.8; }

.crop-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.crop-modal-content { background: rgba(0, 20, 25, 0.95); border: 1px solid var(--primary); padding: 30px; width: 90%; max-width: 500px; box-shadow: 0 0 40px var(--primary-dim); text-align: center; }
.crop-modal-content h3 { font-family: 'Orbitron', sans-serif; color: #fff; margin-bottom: 20px; letter-spacing: 2px; }
.img-container { width: 100%; max-height: 60vh; background: #000; margin-bottom: 20px; }
.img-container img { display: block; max-width: 100%; }
.modal-actions { display: flex; gap: 15px; }
.modal-actions button { margin-top: 0; flex: 1; }

/* ==========================================
   PROFILE PAGE
========================================== */
.profile-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 140px 20px 60px; position: relative; z-index: 2; }
.profile-box { background: rgba(0, 20, 25, 0.85); border: 1px solid var(--primary); width: 100%; max-width: 800px; box-shadow: 0 0 30px rgba(0, 243, 255, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 0; }
.profile-sidebar { background: rgba(0, 0, 0, 0.4); padding: 40px 20px; text-align: center; border-right: 1px solid var(--primary-dim); display: flex; flex-direction: column; align-items: center; }
.profile-avatar-large { width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 20px rgba(0, 243, 255, 0.3); object-fit: cover; margin-bottom: 20px; }
.profile-username { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 2px; }
.profile-role { font-family: 'Fira Code', monospace; font-size: 0.9rem; color: #27c93f; margin-bottom: 20px; }
.profile-sidebar .status-badge { display: inline-block; padding: 5px 15px; border: 1px solid #27c93f; color: #27c93f; font-family: 'Fira Code', monospace; font-size: 0.75rem; background: rgba(39, 201, 63, 0.1); letter-spacing: 1px; }
.profile-details { padding: 40px; }
.profile-details h3 { font-family: 'Orbitron', sans-serif; color: var(--primary); margin-bottom: 25px; letter-spacing: 2px; border-bottom: 1px solid var(--primary-dim); padding-bottom: 10px; }
.data-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.data-label { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #889; margin-bottom: 5px; }
.data-value { font-family: 'Fira Code', monospace; font-size: 1.1rem; color: #e0f7fa; }
.cyber-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; background: rgba(0, 243, 255, 0.05); padding: 20px; border: 1px solid var(--primary-dim); }
.stat-box { text-align: center; }
.stat-num { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: #fff; text-shadow: 0 0 10px var(--primary); }
.stat-desc { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--primary); margin-top: 5px; }

/* ==========================================
   EVENTS, PROJECTS & RESEARCH PAGES
========================================== */
.event-wrapper, .projects-wrapper, .research-wrapper { flex: 1; padding: 140px 5% 60px; position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%; }

.event-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.projects-grid, .research-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

.event-card, .project-card, .research-card { background: rgba(0, 10, 15, 0.75); border: 1px solid var(--primary-dim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 25px; transition: 0.4s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.event-card { padding: 30px; }
/* .event-card::before, .project-card::before, .research-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0%; background: var(--primary); transition: 0.4s ease; } */
.event-card:hover, .project-card:hover, .research-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15); }
.event-card:hover::before, .project-card:hover::before, .research-card:hover::before { height: 100%; box-shadow: 0 0 15px var(--primary); }

.card-meta { display: flex; justify-content: space-between; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #889; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.research-card .card-meta { font-size: 0.75rem; padding-bottom: 10px; }
.card-meta span i { color: var(--primary); margin-right: 5px; }

.card-title, .project-title { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.project-title { font-size: 1.4rem; margin-bottom: 10px; }
.research-card .card-title { font-size: 1.4rem; }

.card-excerpt, .project-desc { font-size: 1.05rem; color: #aab; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.project-desc, .research-card .card-excerpt { font-size: 0.95rem; }

.card-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tag { background: rgba(0, 243, 255, 0.05); border: 1px solid var(--primary-dim); color: var(--primary); font-family: 'Fira Code', monospace; font-size: 0.75rem; padding: 4px 10px; border-radius: 2px; }
.research-card .tag { font-size: 0.65rem; padding: 3px 8px; }
.tag.red { border-color: rgba(255, 95, 86, 0.5); color: #ff5f56; background: rgba(255, 95, 86, 0.05); }
.tag.green { border-color: rgba(0, 255, 128, 0.5); color: #00ff80; background: rgba(0, 255, 128, 0.05); }

.btn-action, .btn-read { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 12px 0; width: 100%; font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 2px; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-read { padding: 10px 0; font-size: 0.9rem; }
.btn-action:hover, .btn-read:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary-dim); }

/* Specific to Projects */
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.project-icon { font-size: 2.2rem; color: var(--primary); text-shadow: 0 0 10px var(--primary-dim); }

.projects-wrapper .status-badge { font-family: 'Fira Code', monospace; font-size: 0.7rem; padding: 3px 8px; border: 1px solid; border-radius: 3px; letter-spacing: 1px; text-transform: uppercase; }
.status-live { color: var(--success); border-color: rgba(39, 201, 63, 0.4); background: rgba(39, 201, 63, 0.05); }
.status-beta { color: var(--warning); border-color: rgba(255, 189, 46, 0.4); background: rgba(255, 189, 46, 0.05); }
.status-dev { color: var(--alert); border-color: rgba(255, 95, 86, 0.4); background: rgba(255, 95, 86, 0.05); }

.tech-stack { display: flex; gap: 8px; margin-bottom: 25px; flex-wrap: wrap; }
.tech-tag { background: rgba(0, 243, 255, 0.05); border: 1px solid rgba(0, 243, 255, 0.2); color: #889; font-family: 'Fira Code', monospace; font-size: 0.65rem; padding: 3px 8px; border-radius: 2px; }

.project-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.repo-stats { display: flex; gap: 15px; }
.stat-item { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #889; transition: 0.3s; }
.stat-item:hover { color: var(--primary); }
.stat-item i { margin-right: 5px; color: var(--primary); opacity: 0.7; }
.action-links { display: flex; gap: 10px; }
.btn-icon { background: transparent; border: 1px solid var(--primary-dim); color: var(--primary); width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; font-size: 0.9rem; text-decoration: none; }
.btn-icon:hover { border-color: var(--primary); background: rgba(0, 243, 255, 0.1); color: #fff; box-shadow: 0 0 10px var(--primary-dim); transform: scale(1.05); }

/* HORIZONTAL SCROLLABLE TABS */
.scrollable-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 12px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.scrollable-tabs::-webkit-scrollbar { height: 4px; }
.scrollable-tabs::-webkit-scrollbar-track { background: rgba(0, 20, 25, 0.5); border-radius: 4px; }
.scrollable-tabs::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 4px; }
.scrollable-tabs::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.scrollable-tabs .filter-btn {
    flex-shrink: 0; /* Prevents buttons from squishing */
}

/* ========================================== */
/* NAV JARVIS AVATAR EFFECT (ASYMMETRICAL)    */
/* ========================================== */

.nav-avatar-container {
    position: relative;
    width: 35px;  
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#nav-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 243, 255, 0.4);
    background: #0a0f14; /* Prevents transparent avatars from showing the ring behind them */
}

/* Base Ring (Spins clockwise with uneven dashes) */
.nav-avatar-ring {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    z-index: 1;
    border-radius: 50%;
    /* The magic is here: stroke-dasharray controls the exact lengths. 
       Format: dash, gap, dash, gap... */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='none' stroke='%2300f3ff' stroke-width='4' stroke-dasharray='30 10 5 10 40 15 15 15'/%3E%3C/svg%3E");
    background-size: cover;
    animation: spin-nav-ring 12s linear infinite;
    opacity: 0.8;
}

/* Secondary Inner Ring (Spins counter-clockwise for complex HUD feel) */
.nav-avatar-ring::after {
    content: '';
    position: absolute;
    /* Pushes the second ring slightly inward */
    top: 3px; left: 3px; right: 3px; bottom: 3px; 
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='none' stroke='%2300f3ff' stroke-width='6' stroke-dasharray='10 15 40 10 5 20'/%3E%3C/svg%3E");
    background-size: cover;
    animation: spin-nav-ring-reverse 8s linear infinite;
    opacity: 0.4;
}

/* Animations */
@keyframes spin-nav-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-nav-ring-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Hover State - Speeds up and glows */
.nav-avatar-container:hover .nav-avatar-ring {
    animation-duration: 3s;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.8));
}

.nav-avatar-container:hover .nav-avatar-ring::after {
    animation-duration: 2s;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
========================================== */
@media(max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; }
    .logo { font-size: 1.4rem; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; } 
    nav a { font-size: 0.8rem; }
    .home-header h1 { font-size: 2.5rem; } 
    .terminal-box { width: 95%; }
    .live-likes-feed { bottom: 10px; right: 10px; font-size: 0.65rem; }
    .event-wrapper, .projects-wrapper, .research-wrapper, .profile-wrapper { padding-top: 160px; }
    .login-wrapper, .auth-wrapper { padding-top: 150px; }
    .login-box, .auth-box { margin: 0 15px; }
    .input-row { flex-direction: column; gap: 0; }
    .page-header h1 { font-size: 2.2rem; }
    .event-grid { max-width: 100%; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-sidebar { border-right: none; border-bottom: 1px solid var(--primary-dim); }
}